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 is a lot more obvious: var_dump(test('1')); var_dump(test(null));
based on nDcjd
Output for 7.0.28 - 7.3.0rc3
Fatal error: Uncaught Error: Call to undefined function 1() in /in/AoPlC:4 Stack trace: #0 /in/AoPlC(12): test('1') #1 {main} thrown in /in/AoPlC on line 4
Process exited with code 255.
Output for 5.6.38
Fatal error: Call to undefined function 1() in /in/AoPlC on line 4
Process exited with code 255.