3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $fn = create_function( '$x', 'return $x; } $foo = dsss; function foo($int) { return $int; ' ); echo foo($fn($foo));
Output for 7.0.0 - 7.1.0
Notice: Use of undefined constant dsss - assumed 'dsss' in /in/hSsmd(4) : runtime-created function on line 1 dsss
Output for hhvm-3.10.0 - 3.12.0
Notice: Use of undefined constant dsss - assumed 'dsss' Notice: Undefined variable: foo in /in/hSsmd on line 7
Output for 4.3.0 - 5.6.28
Notice: Use of undefined constant dsss - assumed 'dsss' in /in/hSsmd(5) : runtime-created function on line 1 dsss