3v4l.org

run code in 300+ PHP versions simultaneously
<?php function dateCompare($a, $b) { $t1 = strtotime($a); $t2 = strtotime($b); return $t1 - $t2; } print dateCompare('2013-12-02', '2013-12-06').'\r\n'; print dateCompare('2013-12-02', '2013-12-06')/(60*60*24); print 60*60*24;
Output for git.master, git.master_jit, rfc.property-hooks
-345600\r\n-486400

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