3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'post_max_size in bytes = '.return_byte(); function return_bytes("8M") { $val = trim($val); $last =str_split($val); $last[1]=$valu; echo $valu; switch($valu) { case 'M': echo 'm'; break; default: return $val; } } ?>
Output for 5.4.0 - 5.4.21
Parse error: syntax error, unexpected '"8M"' (T_CONSTANT_ENCAPSED_STRING), expecting '&' or variable (T_VARIABLE) in /in/ah8UR on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting '&' or T_VARIABLE in /in/ah8UR on line 3
Process exited with code 255.

preferences:
180.45 ms | 1395 KiB | 57 Q