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) { $$ch[$s] = $a."-".$i."-".$j ; if($j % 4 == 0) { $s++; } $j++; } $i++; } print_r($$ch1);
Output for 5.0.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Undefined variable: ch1 in /in/CUYut on line 27 Notice: Undefined variable: in /in/CUYut on line 27
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: ch1 in /in/CUYut on line 27 Notice: Undefined variable: in /in/CUYut on line 27