3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test &= (unset)array(1, 2, 3); $r = (array)$test; var_dump($r);
Output for 7.2.0 - 7.2.8
Deprecated: The (unset) cast is deprecated in /in/INua2 on line 3 Notice: Undefined variable: test in /in/INua2 on line 3 array(1) { [0]=> int(0) }
Output for 5.0.4 - 7.1.20
Notice: Undefined variable: test in /in/INua2 on line 3 array(1) { [0]=> int(0) }
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: test in /in/INua2 on line 3 array(1) { [0]=> int(0) }