3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo file_get_contents('/etc/php.ini');
Output for 7.1.25 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.25, 7.4.27 - 7.4.33, 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
[PHP] ; proc_open is in here because resources somehow leak if not proc_closed ; ini_set should be in here too if you're concerned about security disable_functions = proc_open,phpinfo,mail open_basedir = /tmp:/in:/etc max_execution_time = 3 memory_limit = 64M enable_dl = Off ; for consistency of older versions allow_call_time_pass_reference = Off html_errors = Off extension=gmp.so extension=iconv.so extension=intl.so extension=bcmath.so ; extension=sodium.so zend_extension=opcache.so ; show all errors by default, if we'd lower this in the script we'll miss some parser notices error_reporting = -1 display_errors = On display_startup_errors = On log_errors = Off report_memleaks = On ; off in all any default php.ini short_open_tag = Off [Date] date.timezone = Europe/Amsterdam
Output for 8.0.13
Warning: file_get_contents(/etc/php.ini): Failed to open stream: No such file or directory in /in/1neKk on line 2
Output for 7.3.32 - 7.3.33, 7.4.26
Warning: file_get_contents(/etc/php.ini): failed to open stream: No such file or directory in /in/1neKk on line 2
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 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.38, 7.0.0 - 7.0.33, 7.1.0 - 7.1.24
[PHP] ; proc_open is in here because resources somehow leak if not proc_closed ; ini_set should be in here too if you're concerned about security disable_functions = proc_open,phpinfo,mail open_basedir = /tmp:/in:/etc max_execution_time = 3 memory_limit = 64M enable_dl = Off ; for consistency of older versions allow_call_time_pass_reference = Off html_errors = Off extension=gmp.so extension=iconv.so extension=intl.so extension=bcmath.so zend_extension=opcache.so ; show all errors by default, if we'd lower this in the script we'll miss some parser notices error_reporting = -1 display_errors = On display_startup_errors = On log_errors = Off report_memleaks = On [Date] date.timezone = Europe/Amsterdam

preferences:
302.37 ms | 405 KiB | 455 Q