3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $result = array('attention', 0, 'danger'); echo $result; echo "\58"; for ($t=0; $t<128; $t++) $result .= chr($t); echo "strlen = ".strlen($result)."\n"; echo "Result = ".$result."\n";
Output for 5.4.0 - 5.4.27, 5.4.34 - 7.2.0
Notice: Array to string conversion in /in/3FrTb on line 4 Array8 Notice: Array to string conversion in /in/3FrTb on line 8 strlen = 133 Result = Array  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
Output for 5.4.32
Notice: Array to string conversion in /in/3FrTb on line 4 Array8 Notice: Array to string conversion in /in/3FrTb on line 8 strlen = 133 Result = Array5.4.323FrTb  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
Output for 5.4.31
Notice: Array to string conversion in /in/3FrTb on line 4 Array8 Notice: Array to string conversion in /in/3FrTb on line 8 strlen = 133 Result = Array5.4.313FrTb  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
Output for 5.4.30
Notice: Array to string conversion in /in/3FrTb on line 4 Array8 Notice: Array to string conversion in /in/3FrTb on line 8 strlen = 133 Result = Array5.4.303FrTb  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
Output for 5.4.29
Notice: Array to string conversion in /in/3FrTb on line 4 Array8 Notice: Array to string conversion in /in/3FrTb on line 8 strlen = 133 Result = Array5.4.293FrTb  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
Output for 5.4.28
Notice: Array to string conversion in /in/3FrTb on line 4 Array8 Notice: Array to string conversion in /in/3FrTb on line 8 strlen = 133 Result = Array5.4.283FrTb  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
Output for 5.3.29
Array8strlen = 133 Result = Array5.3.293FrTb  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
Output for 4.3.0 - 5.3.28
Array8strlen = 133 Result = Array  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~