3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $message='text0 text1 text2 text3 text4 text5'; $ms = explode(' ', $message); $result=$ms[0]; $i=1 do { $result.=$ms[i]; $i++; } while(strlen($result)<20) ?>
Output for 5.4.16
Parse error: syntax error, unexpected 'do' (T_DO) in /in/km5VW on line 7
Process exited with code 255.
Output for 5.4.0 - 5.4.15
Parse error: syntax error, unexpected 'do' (T_DO) in km5VW on line 7
Process exited with code 255.
Output for 5.3.25 - 5.3.26
Parse error: syntax error, unexpected T_DO in /in/km5VW on line 7
Process exited with code 255.
Output for 5.3.0 - 5.3.24
Parse error: syntax error, unexpected T_DO in km5VW on line 7
Process exited with code 255.