eval.in

Paste #61309

PHP — PHP 5.5.1, pasted 5 months ago

1
2
3
4
5
6
7
8
<?php

$a = "2a0";

for($i = 0; $i < 50; $i++) {
  print "$a\n";
  $a++;
}

Program Output

2a0
2a1
2a2
2a3
2a4
2a5
2a6
2a7
2a8
2a9
2b0
2b1
2b2
2b3
2b4
2b5
2b6
2b7
2b8
2b9
2c0
2c1
2c2
2c3
2c4
2c5
2c6
2c7
2c8
2c9
2d0
2d1
2d2
2d3
2d4
2d5
2d6
2d7
2d8
2d9
2e0
3
4
5
6
7
8
9
10
11

OK (0.008 sec real, 0.011 sec wall, 14 MB, 91 syscalls)

Fork