3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $s = eval('return function($s){ echo "shat"; };'); $s();
based on PsNj2
Output for 7.1.0 - 7.2.0
Fatal error: Uncaught ArgumentCountError: Too few arguments to function {closure}(), 0 passed in /in/Ekbb4 on line 5 and exactly 1 expected in /in/Ekbb4(3) : eval()'d code:1 Stack trace: #0 /in/Ekbb4(5): {closure}() #1 {main} thrown in /in/Ekbb4(3) : eval()'d code on line 1
Process exited with code 255.
Output for 5.3.20 - 7.0.20
Warning: Missing argument 1 for {closure}(), called in /in/Ekbb4 on line 5 and defined in /in/Ekbb4(3) : eval()'d code on line 1 shat