3v4l.org

run code in 300+ PHP versions simultaneously
<?php $in = "07:07"; $out = "15:56"; $in_time = "07:00"; $out_time = "16:00"; if(strtotime($in) > strtotime($in_time)){ echo (strtotime($in) - strtotime($in_time))/60 . " minutes late in\n\n"; }else{ echo "not late in\n\n"; } if(strtotime($out) < strtotime($out_time)){ echo (strtotime($out_time)-strtotime($out))/60 . " minutes early out\n"; }else{ echo "not early out\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
7 minutes late in 4 minutes early out

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