3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = '661 660 657 656 663 662 659 658 642 641 644 643'; $string = explode("\n", $string); reset($string); sort($string); reset($string); foreach($string as $x) { echo 'case ' . $x . ':' . "\n"; }
based on qjM07
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
case 641: case 642: case 643: case 644: case 656: case 657: case 658: case 659: case 660: case 661: case 662: case 663:
Output for hhvm-3.10.0

Process exited with code 153.