3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'How are you?'; var_dump( strpos($a,'area') ); register_shutdown_function( 'ss' );
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
bool(false) Fatal error: Uncaught TypeError: register_shutdown_function(): Argument #1 ($callback) must be a valid callback, function "ss" not found or invalid function name in /in/AED8F:5 Stack trace: #0 /in/AED8F(5): register_shutdown_function('ss') #1 {main} thrown in /in/AED8F on line 5
Process exited with code 255.
Output for 5.1.2 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.10, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33
bool(false) Warning: register_shutdown_function(): Invalid shutdown callback 'ss' passed in /in/AED8F on line 5
Output for 4.4.0 - 4.4.9, 5.0.5, 5.1.0 - 5.1.1
bool(false) Warning: (Registered shutdown functions) Unable to call ss() - function does not exist in Unknown on line 0
Output for 5.0.0 - 5.0.4
bool(false) Warning: Unknown: Unable to call ss() - function does not exist in Unknown on line 0
Output for 4.3.0 - 4.3.11
bool(false) Warning: Unknown(): Unable to call ss() - function does not exist in Unknown on line 0

preferences:
232.02 ms | 401 KiB | 353 Q