3v4l.org

run code in 300+ PHP versions simultaneously
<?php $registros = ["manzana", "pera", "naranja", "limon", "mandarina", "melon", "aguacate", "chinola", "melocoton"]; $mostrarRegistros = 2; $paginas = ceil(count($registros)/$mostrarRegistros); $inicio = 1; $paginaActual = 5; echo "la cantidad de paginas es: $paginas\n"; for($i = 1; $i <= $paginas; $i++){ if ($i == $paginaActual){ echo " <|$i|> "; } else { echo " |$i| "; } }
Output for git.master_jit, git.master, rfc.property-hooks
la cantidad de paginas es: 5 |1| |2| |3| |4| <|5|>

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:
58.09 ms | 401 KiB | 8 Q