3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function test12() { debug_backtrace(); } set_error_handler("test12"); function x($s) { $s['a'] = 1; }; $y = '1'; x($y); print_r($y);
Output for 4.3.0 - 5.3.29, 5.4.15 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
1
Output for 5.4.0 - 5.4.14
1
Process exited with code 139.