3v4l.org

run code in 300+ PHP versions simultaneously
<?php function measure($c) { $start = hrtime(true); $c(); var_dump(hrtime(true) - $start); } const ITERS = 10000; measure(function () { $array = []; for ($i = 0; $i < ITERS; $i++) { $array[] = $i; } }); measure(function () { $array = []; for ($i = 0; $i < ITERS; $i++) { $copy = $array; $array[] = $i; } });
Output for git.master
int(176767) int(103746950)
Output for git.master_jit
int(260964) int(143105991)
Output for rfc.property-hooks
int(179741) int(103273426)

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:
23.95 ms | 407 KiB | 5 Q