3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function google($x){function_exists($x)||eval("function $x($y){echo $y;}");$x(strlen($x));} google('bing'); google('bing'); google('google');
based on gb1am
Output for 7.0.0 - 7.2.0
Notice: Undefined variable: y in /in/M0jEB on line 3 Notice: Undefined variable: y in /in/M0jEB on line 3 Parse error: syntax error, unexpected ';' in /in/M0jEB(3) : eval()'d code on line 1
Process exited with code 255.
Output for 5.3.18 - 5.6.28
Notice: Undefined variable: y in /in/M0jEB on line 3 Notice: Undefined variable: y in /in/M0jEB on line 3 Parse error: syntax error, unexpected ';' in /in/M0jEB(3) : eval()'d code on line 1 Fatal error: Call to undefined function bing() in /in/M0jEB on line 3
Process exited with code 255.