3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = 23; $b = 2; $arr[] = $i % $b; // store remainder in array $i = $i/$b; var_dump($arr,$i);
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: i in /in/4DmNl on line 4 Notice: Undefined variable: i in /in/4DmNl on line 5 array(1) { [0]=> int(0) } int(0)
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: i in /in/4DmNl on line 4 Notice: Undefined variable: i in /in/4DmNl on line 5 array(1) { [0]=> int(0) } int(0)