3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function Number() { $totalNumbers = array(); $number = 0; for ($i=0; $i < 10; $i++) { $totalNumbers[] = $number++; } for ($i=0; $i < 10; $i++) { echo $totalNumbers[$i] . "<br>"; } } Number();
based on UbSb8
Output for 5.6.0 - 7.3.0rc3
0<br>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>