3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(10); $v = $a[0]; echo $a[0] * ($a[0] = 5); echo ++$a[]; echo ++$x;
Output for 5.0.4 - 5.6.28, hhvm-3.10.0, 7.0.0 - 7.1.0
501 Notice: Undefined variable: x in /in/6jqR8 on line 6 1
Output for hhvm-3.12.0
501 Notice: Undefined variable: x in /in/6jqR8 on line -1 1
Output for 4.3.0 - 5.0.3
501 Notice: Undefined variable: x in /in/6jqR8 on line 6 1