3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'post_max_size in bytes = ' .return_byte('8M'); 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; } } echo 'post_max_size in bytes = ' .return_byte('8M'); ?>

This is an error 404

There are `0` results


preferences:
143 ms | 1390 KiB | 7 Q