3v4l.org

run code in 300+ PHP versions simultaneously
<?php function fix_strtotime($date) { if(preg_match('/([012]?[0-9]?:[0-5]{1}\d\s*[aA|pP]?[mM]?)(\s+)(.+)/', $date, $matches)) { return strtotime($matches[3] . $matches[2] . $matches[1]); } return strtotime($date); } echo date('Y-m-d H:i:s', fix_strtotime('24:00:00 yesterday')); // 2010-09-17 14:00:00
Output for git.master, git.master_jit, rfc.property-hooks
2013-07-31 00:00:00

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:
34.42 ms | 401 KiB | 8 Q