3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function f_37b3a9e089cd667f1bc4ee0453f8ac36(&$a) { return ++$a; }; $a = 1; f_37b3a9e089cd667f1bc4ee0453f8ac36(); echo $a;
Output for 7.1.0
Fatal error: Uncaught ArgumentCountError: Too few arguments to function f_37b3a9e089cd667f1bc4ee0453f8ac36(), 0 passed in /in/cXZcF on line 3 and exactly 1 expected in /in/cXZcF:3 Stack trace: #0 /in/cXZcF(3): f_37b3a9e089cd667f1bc4ee0453f8ac36() #1 {main} thrown in /in/cXZcF on line 3
Process exited with code 255.
Output for 5.1.0 - 7.0.14
Warning: Missing argument 1 for f_37b3a9e089cd667f1bc4ee0453f8ac36(), called in /in/cXZcF on line 3 and defined in /in/cXZcF on line 3 Notice: Undefined variable: a in /in/cXZcF on line 3 1
Output for 4.3.0 - 5.0.5
Warning: Missing argument 1 for f_37b3a9e089cd667f1bc4ee0453f8ac36() in /in/cXZcF on line 3 1