3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array('unu', 'doi'); $u = array_shift($a); $x = array_shift($a) ? $x : 'x'; var_dump($x);
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: x in /in/JRdAE on line 4 NULL
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: x in /in/JRdAE on line 4 NULL