3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time_left = '6h : 27m : 45s'; $time_right = '6h : 27m : 5s'; $parts_left = explode(":", $time_left); $parts_right = explode(":", $time_right); $left = intval($parts_left[0]).":".intval($parts_left[1]).":".intval($parts_left[2]); $right = intval($parts_right[0]).":".intval($parts_right[1]).":".intval($parts_right[2]); if (strtotime($left) > strtotime($right)) { echo "Timer to the left is bigger"; }
Output for git.master, git.master_jit, rfc.property-hooks
Timer to the left is bigger

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