3v4l.org

run code in 300+ PHP versions simultaneously
<?php const ITERATIONS = 100000; $start = microtime(true); for ($i = 0; $i < ITERATIONS; $i++) { try { throw new Exception($i); } catch (\Throwable $e) { } } $end = microtime(true); $total = $end - $start; echo "Throwing exceptions: $total\n"; $start = microtime(true); for ($i = 0; $i < ITERATIONS; $i++) { new Exception($i); } $end = microtime(true); $total = $end - $start; echo "Creating exceptions: $total\n"; $start = microtime(true); for ($i = 0; $i < ITERATIONS; $i++) { new stdClass(); } $end = microtime(true); $total = $end - $start; echo "Creating stdClass : $total\n"; $start = microtime(true); for ($i = 0; $i < ITERATIONS; $i++) { new Attribute(); } $end = microtime(true); $total = $end - $start; echo "Creating Attribute : $total\n";
Output for git.master_jit
Throwing exceptions: 0.016004085540771 Creating exceptions: 0.013723850250244 Creating stdClass : 0.0023889541625977 Creating Attribute : 0.0034868717193604
Output for git.master
Throwing exceptions: 0.038689851760864 Creating exceptions: 0.015337944030762 Creating stdClass : 0.0023458003997803 Creating Attribute : 0.0033431053161621

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:
32.99 ms | 406 KiB | 5 Q