3v4l.org

run code in 300+ PHP versions simultaneously
<?php $to = explode(" ", substr("hello how are you bn",1,-1)); $lang = $to[count($arr)-1]; $txt = array_slice($to, 0, count($arr)-1,TRUE); echo($txt); echo("!!!"); echo($lang)); ?>
Output for 5.3.0 - 5.3.24, 5.4.0 - 5.4.15
Parse error: syntax error, unexpected ')', expecting ',' or ';' in VApVb on line 8
Process exited with code 255.
Output for 5.3.25
Parse error: syntax error, unexpected ')', expecting ',' or ';' in /in/EvKJ0 on line 8
Process exited with code 255.

preferences:
174.48 ms | 1395 KiB | 49 Q