3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Positive numbers: $res5[0][0]="tag1,tag10,tag11,tag13,tag15,tag17,tag19,tag20,tag4,tag9,tag8,tag7,tag6,tag5,tag3,tag2,tag18,tag16,tag14,tag12"; if (strpos($res5[0][0], 'tag') !== false) { $str1=substr($res5[0][0],0,3); $str2=preg_replace("/tag/","",substr($res5[0][0],3)); $html="<td style='word-wrap: break-word; word-break:break-all;'>"$str1.$str2"</td>"; echo $html; } ?>
Output for 5.4.0 - 5.4.29
Parse error: syntax error, unexpected '$str1' (T_VARIABLE) in /in/9Jnul on line 9
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_VARIABLE in /in/9Jnul on line 9
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_VARIABLE in /in/9Jnul on line 9
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/9Jnul on line 9
Process exited with code 255.

preferences:
217.12 ms | 1395 KiB | 119 Q