3v4l.org

run code in 300+ PHP versions simultaneously
<?php $menu_slug = "pens-and-pencils"; $menu_title = "Pens and Pencils"; $tests = 10000; $loop = $tests; $a = hrtime(1); while ($loop > 0 ) { base_convert( substr( md5( $menu_slug . $menu_title ), -4 ), 16, 10 ) * 0.00001; $loop--; } var_dump( hrtime(1) - $a ); $loop = $tests; $a = hrtime(1); while ($loop > 0 ) { substr( base_convert( md5( $menu_slug . $menu_title ), 16, 10 ), -5 ) * 0.00001; $loop--; } var_dump( hrtime(1) - $a );
Output for git.master
int(2959028) int(30477437)
Output for git.master_jit
int(2736365) int(23509385)
Output for rfc.property-hooks
int(5104261) int(37715288)

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