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($sh,$$ch[$s]); if($j % 4 == 0) { $s++; } $j++; } $i++; } //print_r($$ch1);
Output for 7.0.0 - 7.1.0
Notice: Undefined offset: 1 in /in/vvWcr on line 16 Warning: array_push() expects parameter 1 to be array, string given in /in/vvWcr on line 16 Notice: Undefined offset: 1 in /in/vvWcr on line 16 Warning: array_push() expects parameter 1 to be array, string given in /in/vvWcr on line 16 Notice: Undefined offset: 1 in /in/vvWcr on line 16 Warning: array_push() expects parameter 1 to be array, string given in /in/vvWcr on line 16 Notice: Undefined offset: 1 in /in/vvWcr on line 16 Warning: array_push() expects parameter 1 to be array, string given in /in/vvWcr on line 16 Notice: Undefined offset: 2 in /in/vvWcr on line 16 Warning: array_push() expects parameter 1 to be array, string given in /in/vvWcr on line 16 Notice: Undefined offset: 2 in /in/vvWcr on line 16 Warning: array_push() expects parameter 1 to be array, string given in /in/vvWcr on line 16 Notice: Undefined offset: 2 in /in/vvWcr on line 16 Warning: array_push() expects parameter 1 to be array, string given in /in/vvWcr on line 16 Notice: Undefined offset: 2 in /in/vvWcr on line 16 Warning: array_push() expects parameter 1 to be array, string given in /in/vvWcr on line 16 Notice: Undefined offset: 3 in /in/vvWcr on line 16 Warning: array_push() expects parameter 1 to be array, string given in /in/vvWcr on line 16 Notice: Undefined offset: 3 in /in/vvWcr on line 16 Warning: array_push() expects parameter 1 to be array, string given in /in/vvWcr on line 16 Notice: Undefined offset: 3 in /in/vvWcr on line 16 Warning: array_push() expects parameter 1 to be array, string given in /in/vvWcr on line 16 Notice: Undefined offset: 3 in /in/vvWcr on line 16 Warning: array_push() expects parameter 1 to be array, string given in /in/vvWcr on line 16
Output for 5.3.0 - 5.6.28
Notice: Undefined variable: c in /in/vvWcr on line 16 Warning: array_push() expects parameter 1 to be array, string given in /in/vvWcr on line 16 Notice: Undefined variable: c in /in/vvWcr on line 16 Warning: array_push() expects parameter 1 to be array, string given in /in/vvWcr on line 16 Notice: Undefined variable: c in /in/vvWcr on line 16 Warning: array_push() expects parameter 1 to be array, string given in /in/vvWcr on line 16 Notice: Undefined variable: c in /in/vvWcr on line 16 Warning: array_push() expects parameter 1 to be array, string given in /in/vvWcr on line 16 Notice: Undefined variable: h in /in/vvWcr on line 16 Warning: array_push() expects parameter 1 to be array, string given in /in/vvWcr on line 16 Notice: Undefined variable: h in /in/vvWcr on line 16 Warning: array_push() expects parameter 1 to be array, string given in /in/vvWcr on line 16 Notice: Undefined variable: h in /in/vvWcr on line 16 Warning: array_push() expects parameter 1 to be array, string given in /in/vvWcr on line 16 Notice: Undefined variable: h in /in/vvWcr on line 16 Warning: array_push() expects parameter 1 to be array, string given in /in/vvWcr on line 16 Notice: Undefined variable: 1 in /in/vvWcr on line 16 Warning: array_push() expects parameter 1 to be array, string given in /in/vvWcr on line 16 Notice: Undefined variable: 1 in /in/vvWcr on line 16 Warning: array_push() expects parameter 1 to be array, string given in /in/vvWcr on line 16 Notice: Undefined variable: 1 in /in/vvWcr on line 16 Warning: array_push() expects parameter 1 to be array, string given in /in/vvWcr on line 16 Notice: Undefined variable: 1 in /in/vvWcr on line 16 Warning: array_push() expects parameter 1 to be array, string given in /in/vvWcr on line 16
Output for 5.0.4 - 5.0.5, 5.1.1 - 5.2.17
Notice: Undefined variable: c in /in/vvWcr on line 16 Warning: array_push(): First argument should be an array in /in/vvWcr on line 16 Notice: Undefined variable: c in /in/vvWcr on line 16 Warning: array_push(): First argument should be an array in /in/vvWcr on line 16 Notice: Undefined variable: c in /in/vvWcr on line 16 Warning: array_push(): First argument should be an array in /in/vvWcr on line 16 Notice: Undefined variable: c in /in/vvWcr on line 16 Warning: array_push(): First argument should be an array in /in/vvWcr on line 16 Notice: Undefined variable: h in /in/vvWcr on line 16 Warning: array_push(): First argument should be an array in /in/vvWcr on line 16 Notice: Undefined variable: h in /in/vvWcr on line 16 Warning: array_push(): First argument should be an array in /in/vvWcr on line 16 Notice: Undefined variable: h in /in/vvWcr on line 16 Warning: array_push(): First argument should be an array in /in/vvWcr on line 16 Notice: Undefined variable: h in /in/vvWcr on line 16 Warning: array_push(): First argument should be an array in /in/vvWcr on line 16 Notice: Undefined variable: 1 in /in/vvWcr on line 16 Warning: array_push(): First argument should be an array in /in/vvWcr on line 16 Notice: Undefined variable: 1 in /in/vvWcr on line 16 Warning: array_push(): First argument should be an array in /in/vvWcr on line 16 Notice: Undefined variable: 1 in /in/vvWcr on line 16 Warning: array_push(): First argument should be an array in /in/vvWcr on line 16 Notice: Undefined variable: 1 in /in/vvWcr on line 16 Warning: array_push(): First argument should be an array in /in/vvWcr on line 16
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/vvWcr on line 28
Process exited with code 255.
Output for 4.3.2 - 5.0.3
Notice: Undefined variable: c in /in/vvWcr on line 16 Warning: array_push(): First argument should be an array in /in/vvWcr on line 16 Notice: Undefined variable: c in /in/vvWcr on line 16 Warning: array_push(): First argument should be an array in /in/vvWcr on line 16 Notice: Undefined variable: c in /in/vvWcr on line 16 Warning: array_push(): First argument should be an array in /in/vvWcr on line 16 Notice: Undefined variable: c in /in/vvWcr on line 16 Warning: array_push(): First argument should be an array in /in/vvWcr on line 16 Notice: Undefined variable: h in /in/vvWcr on line 16 Warning: array_push(): First argument should be an array in /in/vvWcr on line 16 Notice: Undefined variable: h in /in/vvWcr on line 16 Warning: array_push(): First argument should be an array in /in/vvWcr on line 16 Notice: Undefined variable: h in /in/vvWcr on line 16 Warning: array_push(): First argument should be an array in /in/vvWcr on line 16 Notice: Undefined variable: h in /in/vvWcr on line 16 Warning: array_push(): First argument should be an array in /in/vvWcr on line 16 Notice: Undefined variable: 1 in /in/vvWcr on line 16 Warning: array_push(): First argument should be an array in /in/vvWcr on line 16 Notice: Undefined variable: 1 in /in/vvWcr on line 16 Warning: array_push(): First argument should be an array in /in/vvWcr on line 16 Notice: Undefined variable: 1 in /in/vvWcr on line 16 Warning: array_push(): First argument should be an array in /in/vvWcr on line 16 Notice: Undefined variable: 1 in /in/vvWcr on line 16 Warning: array_push(): First argument should be an array in /in/vvWcr on line 16
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: c in /in/vvWcr on line 16 Warning: array_push() [http://www.php.net/function.array-push]: First argument should be an array in /in/vvWcr on line 16 Notice: Undefined variable: c in /in/vvWcr on line 16 Warning: array_push() [http://www.php.net/function.array-push]: First argument should be an array in /in/vvWcr on line 16 Notice: Undefined variable: c in /in/vvWcr on line 16 Warning: array_push() [http://www.php.net/function.array-push]: First argument should be an array in /in/vvWcr on line 16 Notice: Undefined variable: c in /in/vvWcr on line 16 Warning: array_push() [http://www.php.net/function.array-push]: First argument should be an array in /in/vvWcr on line 16 Notice: Undefined variable: h in /in/vvWcr on line 16 Warning: array_push() [http://www.php.net/function.array-push]: First argument should be an array in /in/vvWcr on line 16 Notice: Undefined variable: h in /in/vvWcr on line 16 Warning: array_push() [http://www.php.net/function.array-push]: First argument should be an array in /in/vvWcr on line 16 Notice: Undefined variable: h in /in/vvWcr on line 16 Warning: array_push() [http://www.php.net/function.array-push]: First argument should be an array in /in/vvWcr on line 16 Notice: Undefined variable: h in /in/vvWcr on line 16 Warning: array_push() [http://www.php.net/function.array-push]: First argument should be an array in /in/vvWcr on line 16 Notice: Undefined variable: 1 in /in/vvWcr on line 16 Warning: array_push() [http://www.php.net/function.array-push]: First argument should be an array in /in/vvWcr on line 16 Notice: Undefined variable: 1 in /in/vvWcr on line 16 Warning: array_push() [http://www.php.net/function.array-push]: First argument should be an array in /in/vvWcr on line 16 Notice: Undefined variable: 1 in /in/vvWcr on line 16 Warning: array_push() [http://www.php.net/function.array-push]: First argument should be an array in /in/vvWcr on line 16 Notice: Undefined variable: 1 in /in/vvWcr on line 16 Warning: array_push() [http://www.php.net/function.array-push]: First argument should be an array in /in/vvWcr on line 16