3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = "Hello 🤖"; $chop = substr($test, 0, 8); //Doh! This will crash almost all multibyte aware functions... $json = json_encode($chop); var_dump(json_last_error_msg(), $json);