3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = (unset)array(1, 2, 3); $r = (array)(unset)$test; var_dump($r);
Output for 7.2.0
Deprecated: The (unset) cast is deprecated in /in/IkXRR on line 3 Deprecated: The (unset) cast is deprecated in /in/IkXRR on line 4 array(0) { }
Output for 4.3.0 - 7.1.10
array(0) { }