3v4l.org

run code in 300+ PHP versions simultaneously
<?php $versions = [ '1', '1.0.2.4', '1.1.0', '1.12.547.8' ]; $pad = strlen( max( explode( '.', implode('.', $versions) ) ) ); var_export( preg_replace_callback( '/\d+/', fn($m) => sprintf("%0{$pad}d", $m[0]), $versions ) );
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => '001', 1 => '001.000.002.004', 2 => '001.001.000', 3 => '001.012.547.008', )

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:
38.72 ms | 405 KiB | 5 Q