3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function f($a,$b,$c){ var_dump(get_defined_vars()); } f();
Output for 7.1.0 - 7.3.0rc4
Fatal error: Uncaught ArgumentCountError: Too few arguments to function f(), 0 passed in /in/Yp66d on line 6 and exactly 3 expected in /in/Yp66d:3 Stack trace: #0 /in/Yp66d(6): f() #1 {main} thrown in /in/Yp66d on line 3
Process exited with code 255.
Output for 5.1.0 - 7.0.20
Warning: Missing argument 1 for f(), called in /in/Yp66d on line 6 and defined in /in/Yp66d on line 3 Warning: Missing argument 2 for f(), called in /in/Yp66d on line 6 and defined in /in/Yp66d on line 3 Warning: Missing argument 3 for f(), called in /in/Yp66d on line 6 and defined in /in/Yp66d on line 3 array(0) { }
Output for 4.3.0 - 5.0.5
Warning: Missing argument 1 for f() in /in/Yp66d on line 3 Warning: Missing argument 2 for f() in /in/Yp66d on line 3 Warning: Missing argument 3 for f() in /in/Yp66d on line 3 array(3) { ["a"]=> NULL ["b"]=> NULL ["c"]=> NULL }