3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ex = ") {exit('hihihihihihi');}/\0"; ob_start('create_function'); echo $ex; ob_get_flush(); //var_dump($ex);
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
Warning: ob_start(): function "create_function" not found or invalid function name in /in/JTScd on line 4 Notice: ob_start(): Failed to create buffer in /in/JTScd on line 4 ) {exit('hihihihihihi');}/ Notice: ob_get_flush(): Failed to delete and flush buffer. No buffer to delete or flush in /in/JTScd on line 6
Output for 7.2.0 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.33
) {exit('hihihihihihi');}/ Deprecated: Function create_function() is deprecated in /in/JTScd on line 6 Parse error: syntax error, unexpected '/', expecting end of file in /in/JTScd(6) : runtime-created function on line 1
Process exited with code 255.
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.3.32 - 7.3.33
) {exit('hihihihihihi');}/ Parse error: syntax error, unexpected '/', expecting end of file in /in/JTScd(6) : runtime-created function on line 1
Process exited with code 255.
Output for 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28
) {exit('hihihihihihi');}/ Parse error: syntax error, unexpected '/' in /in/JTScd(6) : runtime-created function on line 1
Process exited with code 255.

preferences:
180.18 ms | 402 KiB | 228 Q