3v4l.org

run code in 300+ PHP versions simultaneously
<?php readfile('/etc/php.ini');
Output for 7.2.29 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 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: readfile(/etc/php.ini): Failed to open stream: No such file or directory in /in/QIfST on line 2
Output for 7.3.32 - 7.3.33
Warning: readfile(/etc/php.ini): failed to open stream: No such file or directory in /in/QIfST on line 2
Output for 7.1.25, 7.2.0 - 7.2.13, 7.3.0 - 7.3.1
[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
Output for 7.1.20
Warning: readfile(): open_basedir restriction in effect. File(/etc/php.ini) is not within the allowed path(s): (/tmp:/in) in /in/QIfST on line 2 Warning: readfile(/etc/php.ini): failed to open stream: Operation not permitted in /in/QIfST on line 2
Output for 5.6.28, 7.0.14 - 7.0.20, 7.1.0 - 7.1.10
[PHP] ; ini_set should be in here too if you're concerned about security disable_functions = pcntl_fork,phpinfo,mail 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
Output for 5.5.24 - 5.5.28, 5.5.35, 5.6.7 - 5.6.12, 5.6.21, 7.0.6
[PHP] ; Precision of floats in serialized output serialize_precision = 24 ; ini_set should be in here too if you're concerned about security disable_functions = pcntl_fork,phpinfo,mail 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=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
Output for 4.3.0, 5.4.39 - 5.4.45, 5.5.29 - 5.5.34, 5.6.13 - 5.6.20, 7.0.0 - 7.0.5
[PHP] ; Precision of floats in serialized output serialize_precision = 24 ; ini_set should be in here too if you're concerned about security disable_functions = pcntl_fork,phpinfo,mail max_execution_time = 3 memory_limit = 64M enable_dl = Off ; for consistency of older versions allow_call_time_pass_reference = Off html_errors = Off ; 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
Output for 5.4.34 - 5.4.38
[PHP] ; Precision of floats in serialized output serialize_precision = 24 ; ini_set should be in here too if you're concerned about security disable_functions = pcntl_fork,phpinfo max_execution_time = 3 memory_limit = 64M enable_dl = Off ; for consistency of older versions allow_call_time_pass_reference = Off html_errors = Off ; 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
Output for 4.3.1 - 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.32
[PHP] user_ini.filename = engine = On implicit_flush = On serialize_precision = 100 allow_call_time_pass_reference = Off ;open_basedir = /tmp/ disable_functions = ini_set,pcntl_fork max_execution_time = 3 memory_limit = 64M html_errors = Off error_reporting = -1 display_errors = On display_startup_errors = On log_errors = Off report_memleaks = On enable_dl = Off [Date] date.timezone = Europe/Amsterdam

preferences:
213.47 ms | 403 KiB | 328 Q