3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $result = ""; $names = array("l", "i", "a", "m", "i", "s", "a", "b", "o", "os"); $topscores = array(0); for ($i = 0; $i < 10; $i++) { array_push($topscores, $i); $result .= $names[$i] . ' ' . (string)$topscores[$i] . ' '; } echo $result; ?>
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
l 0 i 0 a 1 m 2 i 3 s 4 a 5 b 6 o 7 os 8
Output for hhvm-3.10.0

Process exited with code 153.