3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function test($id) { if ($id (is_numeric($id) || $id === 'pass')) { return true; } return false; } // this error makes the bug a lot more obvious: //var_dump(test('1')); var_dump(test(null));
based on dDDUm
Output for 7.0.28 - 7.3.0rc3
Fatal error: Uncaught Error: Function name must be a string in /in/HgnQu:4 Stack trace: #0 /in/HgnQu(14): test(NULL) #1 {main} thrown in /in/HgnQu on line 4
Process exited with code 255.
Output for 5.6.38
Fatal error: Function name must be a string in /in/HgnQu on line 4
Process exited with code 255.