3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace foo; const N = 100_000_000; function without_backslash() { $start = \hrtime(true); $tmp = []; for($i = 0; $i < 10000; $i++) { $tmp[] = strtoupper("test" . $i); } $stop = \hrtime(true); \printf("Without backslash: %f s\n", ($stop - $start)/1e9); } function with_backslash() { $start = \hrtime(true); $tmp = []; for($i = 0; $i < 10000; $i++) { $tmp[] = \strtoupper("test" . $i); } $stop = \hrtime(true); \printf("With backslash: %f s\n", ($stop - $start)/1e9); } without_backslash(); with_backslash(); printf("\n"); without_backslash(); with_backslash(); printf("\n"); without_backslash(); with_backslash(); printf("\n"); without_backslash(); with_backslash(); printf("\n");
Output for git.master
Without backslash: 0.001090 s With backslash: 0.000793 s Without backslash: 0.000793 s With backslash: 0.000778 s Without backslash: 0.000850 s With backslash: 0.000796 s Without backslash: 0.000800 s With backslash: 0.000786 s
Output for git.master_jit
Without backslash: 0.001094 s With backslash: 0.000797 s Without backslash: 0.000825 s With backslash: 0.000790 s Without backslash: 0.000804 s With backslash: 0.000801 s Without backslash: 0.000815 s With backslash: 0.000824 s
Output for rfc.property-hooks
Without backslash: 0.000498 s With backslash: 0.000461 s Without backslash: 0.000508 s With backslash: 0.000482 s Without backslash: 0.000480 s With backslash: 0.000473 s Without backslash: 0.000479 s With backslash: 0.000473 s

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:
56.65 ms | 409 KiB | 5 Q