3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = "A-MTP-"; $i = 1; $j=1; $ss=1; $s=1; $ch="ch".$ss ; $ch= "$".$ch; $$ch =array(); while ($i < 4) { while($j < 13) { $sh = $a."-".$i."-".$j ; array_push($$ch[$s],$sh); if($j % 4 == 0) { $s++; } $j++; } $i++; } //print_r($$ch1);
Output for 5.3.0 - 7.1.0
Warning: array_push() expects parameter 1 to be array, null given in /in/0iRa1 on line 16 Warning: array_push() expects parameter 1 to be array, null given in /in/0iRa1 on line 16 Warning: array_push() expects parameter 1 to be array, null given in /in/0iRa1 on line 16 Warning: array_push() expects parameter 1 to be array, null given in /in/0iRa1 on line 16 Warning: array_push() expects parameter 1 to be array, null given in /in/0iRa1 on line 16 Warning: array_push() expects parameter 1 to be array, null given in /in/0iRa1 on line 16 Warning: array_push() expects parameter 1 to be array, null given in /in/0iRa1 on line 16 Warning: array_push() expects parameter 1 to be array, null given in /in/0iRa1 on line 16 Warning: array_push() expects parameter 1 to be array, null given in /in/0iRa1 on line 16 Warning: array_push() expects parameter 1 to be array, null given in /in/0iRa1 on line 16 Warning: array_push() expects parameter 1 to be array, null given in /in/0iRa1 on line 16 Warning: array_push() expects parameter 1 to be array, null given in /in/0iRa1 on line 16
Output for 4.3.2 - 5.0.5, 5.1.1 - 5.2.17
Warning: array_push(): First argument should be an array in /in/0iRa1 on line 16 Warning: array_push(): First argument should be an array in /in/0iRa1 on line 16 Warning: array_push(): First argument should be an array in /in/0iRa1 on line 16 Warning: array_push(): First argument should be an array in /in/0iRa1 on line 16 Warning: array_push(): First argument should be an array in /in/0iRa1 on line 16 Warning: array_push(): First argument should be an array in /in/0iRa1 on line 16 Warning: array_push(): First argument should be an array in /in/0iRa1 on line 16 Warning: array_push(): First argument should be an array in /in/0iRa1 on line 16 Warning: array_push(): First argument should be an array in /in/0iRa1 on line 16 Warning: array_push(): First argument should be an array in /in/0iRa1 on line 16 Warning: array_push(): First argument should be an array in /in/0iRa1 on line 16 Warning: array_push(): First argument should be an array in /in/0iRa1 on line 16
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/0iRa1 on line 28
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: array_push() [http://www.php.net/function.array-push]: First argument should be an array in /in/0iRa1 on line 16 Warning: array_push() [http://www.php.net/function.array-push]: First argument should be an array in /in/0iRa1 on line 16 Warning: array_push() [http://www.php.net/function.array-push]: First argument should be an array in /in/0iRa1 on line 16 Warning: array_push() [http://www.php.net/function.array-push]: First argument should be an array in /in/0iRa1 on line 16 Warning: array_push() [http://www.php.net/function.array-push]: First argument should be an array in /in/0iRa1 on line 16 Warning: array_push() [http://www.php.net/function.array-push]: First argument should be an array in /in/0iRa1 on line 16 Warning: array_push() [http://www.php.net/function.array-push]: First argument should be an array in /in/0iRa1 on line 16 Warning: array_push() [http://www.php.net/function.array-push]: First argument should be an array in /in/0iRa1 on line 16 Warning: array_push() [http://www.php.net/function.array-push]: First argument should be an array in /in/0iRa1 on line 16 Warning: array_push() [http://www.php.net/function.array-push]: First argument should be an array in /in/0iRa1 on line 16 Warning: array_push() [http://www.php.net/function.array-push]: First argument should be an array in /in/0iRa1 on line 16 Warning: array_push() [http://www.php.net/function.array-push]: First argument should be an array in /in/0iRa1 on line 16