3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $result = ""; echo "\0"; for ($t=0; $t<128; $t++) $result .= chr($t); echo "strlen = ".strlen($result)."\n"; echo "Result = ".$result."\n";
Output for 4.3.0 - 5.3.28, 5.4.0 - 5.4.27, 5.4.34 - 7.1.7
strlen = 128 Result =   !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
Output for 5.4.32
strlen = 128 Result = 5.4.32r9JCK  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
Output for 5.4.31
strlen = 128 Result = 5.4.31r9JCK  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
Output for 5.4.30
strlen = 128 Result = 5.4.30r9JCK  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
Output for 5.4.29
strlen = 128 Result = 5.4.29r9JCK  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
Output for 5.4.28
strlen = 128 Result = 5.4.28r9JCK  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
Output for 5.3.29
strlen = 128 Result = 5.3.29r9JCK  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~