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]) * 60*60 + intval($parts_left[1])*60 + intval($parts_left[2]); $right = intval($parts_right[0]) * 60*60 + intval($parts_right[1])*60 + intval($parts_right[2]); if ($left > $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:
33.35 ms | 405 KiB | 5 Q