3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $result = ""; echo chr(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.2.0
strlen = 128 Result =   !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
Output for 5.4.32
strlen = 128 Result = 5.4.32s6nSW  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
Output for 5.4.31
strlen = 128 Result = 5.4.31s6nSW  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
Output for 5.4.30
strlen = 128 Result = 5.4.30s6nSW  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
Output for 5.4.29
strlen = 128 Result = 5.4.29s6nSW  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
Output for 5.4.28
strlen = 128 Result = 5.4.28s6nSW  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
Output for 5.3.29
strlen = 128 Result = 5.3.29s6nSW  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~