3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $loops_count = 0; $arr = array('apple1', 'orange1', 'banana1', 'potato1', 'cocos1', 'lime1'); do { if(next($arr) === false){ reset($arr); $loops_count++; } var_dump(current($arr)) } while ($loops_count < 3)
Output for 5.3.0 - 5.4.24
Parse error: syntax error, unexpected '}' in /in/vZ8Ns on line 11
Process exited with code 255.