3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = [1, 999, 1000, 50001, 100000, 2999]; foreach ($tests as $test) { $upper = intval(($test - 1) / 1000) * 1000 + 1000; echo "$test is between " . ($upper - 999) . " and $upper\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
1 is between 1 and 1000 999 is between 1 and 1000 1000 is between 1 and 1000 50001 is between 50001 and 51000 100000 is between 99001 and 100000 2999 is between 2001 and 3000

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.35 ms | 405 KiB | 5 Q