3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = $b = true; function onlyA($a) { return ! $a; } function onlyB($b) { return $b; } var_dump(onlyA());
based on XfZnN
Output for 7.1.0 - 7.2.0
Fatal error: Uncaught ArgumentCountError: Too few arguments to function onlyA(), 0 passed in /in/BmZX9 on line 12 and exactly 1 expected in /in/BmZX9:4 Stack trace: #0 /in/BmZX9(12): onlyA() #1 {main} thrown in /in/BmZX9 on line 4
Process exited with code 255.
Output for 5.3.21 - 7.0.20
Warning: Missing argument 1 for onlyA(), called in /in/BmZX9 on line 12 and defined in /in/BmZX9 on line 4 Notice: Undefined variable: a in /in/BmZX9 on line 5 bool(true)