3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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 7.1.0
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.6.28, 7.0.0 - 7.0.14
display_errors = 1 register_globals = post_max_size = 8M post_max_size+1 = 9 post_max_size in bytes = 8388608
Output for hhvm-3.10.0 - 3.12.0
display_errors = 1 register_globals = post_max_size = 104857600 post_max_size+1 = 104857601 post_max_size in bytes = 104857600
Output for 4.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