3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.32, 8.2.0 - 8.2.28, 8.3.0 - 8.3.19, 8.4.1 - 8.4.5
bool(false) Fatal error: Uncaught TypeError: Test::something(): Argument #1 ($test) must be of type bool, string given, called in /in/eLS1T on line 13 and defined in /in/eLS1T:5 Stack trace: #0 /in/eLS1T(13): Test->something('test') #1 {main} thrown in /in/eLS1T on line 5
Process exited with code 255.
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
bool(false) Fatal error: Uncaught TypeError: Argument 1 passed to Test::something() must be of the type bool, string given, called in /in/eLS1T on line 13 and defined in /in/eLS1T:5 Stack trace: #0 /in/eLS1T(13): Test->something('test') #1 {main} thrown in /in/eLS1T on line 5
Process exited with code 255.
Output for 7.0.0 - 7.0.23, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33
bool(false) Fatal error: Uncaught TypeError: Argument 1 passed to Test::something() must be of the type boolean, string given, called in /in/eLS1T on line 13 and defined in /in/eLS1T:5 Stack trace: #0 /in/eLS1T(13): Test->something('test') #1 {main} thrown in /in/eLS1T on line 5
Process exited with code 255.

preferences:
146.54 ms | 414 KiB | 5 Q