3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function foo1($a, $b) { var_dump($a, $b); } function foo2($a) { return "e$a"; } function foo3() { return 2; } function foo4() { return 3; } foo1(foo2(foo4), foo3());
Output for 7.2.0
Warning: Use of undefined constant foo4 - assumed 'foo4' (this will throw an Error in a future version of PHP) in /in/lOpgk on line 8 string(5) "efoo4" int(2)
Output for 4.3.0 - 7.1.10
Notice: Use of undefined constant foo4 - assumed 'foo4' in /in/lOpgk on line 8 string(5) "efoo4" int(2)