3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = "The time is 1020 and the time is 1340 and 1550"; $data = preg_replace('/\b(\d{2})(\d{2})\b/', "$1:$2", $data); echo $data;
Output for git.master, git.master_jit, rfc.property-hooks
The time is 10:20 and the time is 13:40 and 15:50

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.11 ms | 405 KiB | 5 Q