3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* Il nostro php.ini contiene i seguenti parametri: display_errors = On register_globals = Off post_max_size = 8M */ echo 'display_errors = ' . ini_get('display_errors') . "\n"; echo 'register_globals = ' . ini_get('register_globals') . "\n"; echo 'post_max_size = ' . ini_get('post_max_size') . "\n"; echo 'post_max_size+1 = ' . (ini_get('post_max_size')+1) . "\n"; echo 'post_max_size in bytes = ' . return_bytes(ini_get('post_max_size')); function return_bytes($val) { $val = trim($val); $last = $val{strlen($val)-1}; switch($last) { case 'k': case 'K': return (int) $val * 1024; break; case 'm': case 'M': return (int) $val * 1048576; break; default: return $val; } } ?>
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
Fatal error: Array and string offset access syntax with curly braces is no longer supported in /in/j5iXY on line 18
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Deprecated: Array and string offset access syntax with curly braces is deprecated in /in/j5iXY on line 18 display_errors = 1 register_globals = post_max_size = 8M Notice: A non well formed numeric value encountered in /in/j5iXY on line 13 post_max_size+1 = 9 post_max_size in bytes = 8388608
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.36, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.3.32 - 7.3.33
display_errors = 1 register_globals = post_max_size = 8M post_max_size+1 = 9 post_max_size in bytes = 8388608
Output for 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31
display_errors = 1 register_globals = post_max_size = 8M Notice: A non well formed numeric value encountered in /in/j5iXY on line 13 post_max_size+1 = 9 post_max_size in bytes = 8388608
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
display_errors = 1 register_globals = 0 post_max_size = 8M post_max_size+1 = 9 post_max_size in bytes = 8388608

preferences:
270.94 ms | 403 KiB | 362 Q