3v4l.org

run code in 300+ PHP versions simultaneously
<?php $horas_totais = 27; $horario_dos_km = 9.3; $getallours = []; $rasteach = round($horas_totais / $horario_dos_km, 1, PHP_ROUND_HALF_UP); $tot = 0; for ($z = 0; $z < $horario_dos_km - 1; $z++) { $tot += $rasteach; $getallours[] = $tot; } $getallours[] = $horas_totais; print_r($getallours);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => 2.9 [1] => 5.8 [2] => 8.7 [3] => 11.6 [4] => 14.5 [5] => 17.4 [6] => 20.3 [7] => 23.2 [8] => 26.1 [9] => 27 )

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
28.51 ms | 405 KiB | 5 Q