3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = []; $t1 = hrtime(true); for ($i = 0; $i < 6000000; $i++) { \array_key_exists("key", $array); } $t2 = hrtime(true); $t3 = hrtime(true); for ($i = 0; $i < 6000000; $i++) { isset($array["key"]); } $t4 = hrtime(true); echo "With function: " . (($t2 - $t1) / 1000000) . " ms\n"; echo "With isset : " . (($t4 - $t3) / 1000000) . " ms\n";
Output for git.master
With function: 55.908011 ms With isset : 50.298297 ms
Output for git.master_jit
With function: 55.931236 ms With isset : 50.279029 ms
Output for rfc.property-hooks
With function: 46.870756 ms With isset : 44.867519 ms

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