3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ["22.22", "00.44", "44", "55.00", "0.50", "00.5", "0.5"]; foreach($arr as $val){ echo $val . " "; var_export(preg_match("/^\d{2}\.\d{2}$|^\d{2}$/", $val)); echo "\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
22.22 1 00.44 1 44 1 55.00 1 0.50 0 00.5 0 0.5 0

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