3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/London'); $date = strtotime("November 22, 2017 12:01 AM"); $remaining = $date - time(); $str = date("h:i:s", $remaining); Echo $str; if ($remaining > 0) { $days_remaining = floor($remaining / 86400); $hours_remaining = floor(($remaining % 86400) / 3600); $minutes_remaining = floor(($remaining % 3600) / 60); }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.3.10.0030.01016.58
7.3.00.0060.00616.75
7.2.130.0090.00316.87
7.2.120.0090.00416.79
7.2.110.0140.00316.92
7.2.100.0150.00616.77
7.2.90.0060.01416.85
7.2.80.0040.00817.04
7.2.70.0090.00717.00
7.2.60.0110.00317.11
7.2.50.0100.00317.08
7.2.40.0070.00717.00
7.2.30.0090.01016.98
7.2.20.0080.00816.96
7.2.10.0060.00716.91
7.2.00.0100.00716.86
7.1.250.0030.01015.81
7.1.240.0030.00915.95
7.1.230.0060.00915.95
7.1.220.0070.01115.86
7.1.210.0030.01315.79
7.1.200.0080.00816.01
7.1.190.0060.00915.88
7.1.180.0110.00315.75
7.1.170.0130.00015.80
7.1.160.0030.01215.88
7.1.150.0040.01116.06
7.1.140.0070.00315.72
7.1.130.0040.01115.76
7.1.120.0130.00315.68
7.1.110.0440.01216.36
7.1.100.0380.00716.30
7.1.90.0260.00716.17
7.1.80.0470.00716.26
7.1.70.0070.01115.72
7.1.60.0440.00727.55
7.1.50.0370.01027.31
7.1.40.0380.01727.27
7.1.30.0680.01327.16
7.1.20.0310.01627.17
7.1.10.0360.01215.32
7.1.00.0580.01415.43
7.0.330.0030.01015.54
7.0.320.0140.00015.82
7.0.310.0000.01115.39
7.0.300.0070.00715.35
7.0.290.0000.00815.38
7.0.280.0070.01014.99
7.0.270.0040.01115.29
7.0.260.0050.00815.19
7.0.250.0700.01215.76
7.0.240.0460.00915.76
7.0.230.0710.00615.83
7.0.220.0780.01115.72
7.0.210.0460.01215.04
7.0.200.0530.01215.10
7.0.190.0320.00515.18
7.0.180.0550.00914.93
7.0.170.0650.01214.98
7.0.160.0450.00914.83
7.0.150.0360.00814.88
7.0.140.0860.01214.90
7.0.130.0350.00615.03
7.0.120.0370.00815.11
7.0.110.0680.00714.78
7.0.100.0650.01114.83
7.0.90.0390.00614.94
7.0.80.0450.00715.02
7.0.70.0700.00814.89
7.0.60.0440.00614.73
7.0.50.0770.00914.99
7.0.40.0620.00914.25
7.0.30.0520.01014.31
7.0.20.0180.00714.38
7.0.10.0330.01014.29
7.0.00.0220.01214.36
5.6.380.0070.00314.15

preferences:
37.65 ms | 401 KiB | 5 Q