3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ex = '{${phpinfo()}}'; ob_start('create_function'); echo $ex; ob_get_flush();
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/huMF4 on line 4 Notice: ob_start(): Failed to create buffer in /in/huMF4 on line 4 {${phpinfo()}} Notice: ob_get_flush(): Failed to delete and flush buffer. No buffer to delete or flush in /in/huMF4 on line 6
Output for 7.2.0 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.33
{${phpinfo()}} Deprecated: Function create_function() is deprecated in /in/huMF4 on line 6 Parse error: syntax error, unexpected '{', expecting variable (T_VARIABLE) in /in/huMF4(6) : runtime-created function on line 1
Process exited with code 255.
Output for 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.3.32 - 7.3.33
{${phpinfo()}} Parse error: syntax error, unexpected '{', expecting variable (T_VARIABLE) in /in/huMF4(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
{${phpinfo()}} Parse error: syntax error, unexpected '{', expecting '&' or variable (T_VARIABLE) in /in/huMF4(6) : runtime-created function on line 1
Process exited with code 255.

preferences:
198.84 ms | 402 KiB | 228 Q