3v4l.org

run code in 300+ PHP versions simultaneously
<?php $yddd = 3212; preg_match('^(\d)(\d{3})$', $yddd, $m); echo date('Y-m-d', strtotime("201{$m[1]}-01-01 00:00:00 +{$m[2]} days"));
Output for git.master, git.master_jit
Warning: preg_match(): No ending delimiter '^' found in /in/gpXG1 on line 4 Warning: Trying to access array offset on value of type null in /in/gpXG1 on line 6 Warning: Trying to access array offset on value of type null in /in/gpXG1 on line 6 1970-01-01
Output for rfc.property-hooks
Warning: preg_match(): No ending delimiter '^' found in /in/gpXG1 on line 4 Warning: Trying to access array offset on null in /in/gpXG1 on line 6 Warning: Trying to access array offset on null in /in/gpXG1 on line 6 1970-01-01

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.82 ms | 401 KiB | 8 Q