3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump( (unset) 'x', (unset) 42, (unset) 0.42, (unset) [42], (unset) new StdClass, (unset) null );
based on GVhuk
Output for 7.2.0
Deprecated: The (unset) cast is deprecated in /in/YnOgT on line 3 Deprecated: The (unset) cast is deprecated in /in/YnOgT on line 4 Deprecated: The (unset) cast is deprecated in /in/YnOgT on line 5 Deprecated: The (unset) cast is deprecated in /in/YnOgT on line 6 Deprecated: The (unset) cast is deprecated in /in/YnOgT on line 7 Deprecated: The (unset) cast is deprecated in /in/YnOgT on line 8 NULL NULL NULL NULL NULL NULL
Output for 5.4.1 - 7.1.10
NULL NULL NULL NULL NULL NULL
Output for 5.3.18 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/YnOgT on line 6
Process exited with code 255.