3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A; $t1 = hrtime(true); for ($i = 0; $i < 6000000; $i++) { count([]); } $t2 = hrtime(true); $t3 = hrtime(true); for ($i = 0; $i < 6000000; $i++) { \count([]); } $t4 = hrtime(true); echo "Without import: " . (($t2 - $t1) / 1000000) . " ms\n"; echo "With import : " . (($t4 - $t3) / 1000000) . " ms\n";
Output for git.master
Without import: 73.625054 ms With import : 35.03819 ms
Output for git.master_jit
Without import: 72.654872 ms With import : 35.218697 ms
Output for rfc.property-hooks
Without import: 54.864602 ms With import : 34.247688 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:
22.87 ms | 407 KiB | 5 Q