3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function swap($a, $b) { $temp = $a; $a = $b; $b = $a; } $a=10; $b=5; if($a>$b) { swap($a, $b); } for($i=$a; $i<=$b; $i++) { echo $i." "; } ?>
based on F81H8
Output for 5.3.20 - 7.2.0