3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('disable_functions', ''); $p = 'php' . 'info'; $p();
based on 6nbAN
Output for 8.0.0alpha1 - alpha2
Fatal error: Uncaught Error: Call to undefined function phpinfo() in /in/U79ii:6 Stack trace: #0 {main} thrown in /in/U79ii on line 6
Process exited with code 255.
Output for 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.31, 7.3.0 - 7.3.19, 7.4.0 - 7.4.8
Warning: phpinfo() has been disabled for security reasons in /in/U79ii on line 6