3v4l.org

run code in 300+ PHP versions simultaneously
<?php $interval_in_seconds = 12 * 86400; $checkin_in_seconds = floor(1413926734544 / 1000); $next_checkin = $checkin_in_seconds + $interval_in_seconds; $until_next = $next_checkin - time(); if($until_next > 0) { $days = floor($until_next / 86400); function secondsToTime($seconds) { // Only here for var_dump testing: global $settings, $interval_in_seconds, $until_next, $next_checkin; $dtF = new DateTime("@0"); $dtT = new DateTime("@$seconds"); var_dump($until_next); $return = $dtF->diff($dtT)->format('%h hours, %i minutes and %s seconds'); var_dump($until_next); return $return; } $countdown = $days . ' days, ' . secondsToTime($until_next); } echo $countdown;

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.4.00.0070.01315.24
7.3.120.0030.01014.93
7.3.110.0110.00715.14
7.3.100.0070.00715.00
7.3.90.0100.00314.96
7.3.80.0100.00715.03
7.3.70.0030.01415.18
7.3.60.0090.00615.02
7.3.50.0090.00315.09
7.3.40.0070.01015.08
7.3.30.0030.01314.91
7.3.20.0040.01116.87
7.3.10.0090.00617.05
7.3.00.0000.01116.73
7.2.250.0030.01315.29
7.2.240.0100.00715.04
7.2.230.0110.00715.46
7.2.220.0080.00415.28
7.2.210.0040.01415.37
7.2.200.0030.00915.02
7.2.190.0040.00815.27
7.2.180.0000.01215.31
7.2.170.0000.01115.18
7.2.00.0030.00719.66
7.1.330.0040.01116.07
7.1.320.0070.00316.05
7.1.310.0030.01316.05
7.1.300.0000.00915.90
7.1.290.0110.00415.76
7.1.280.0050.00516.00
7.1.270.0070.01116.06
7.1.260.0070.00715.93
7.1.70.0000.01417.45
7.1.60.0070.01719.32
7.1.50.0060.01616.88
7.1.00.0000.10022.42
7.0.200.0050.00816.88
7.0.140.0000.07322.15
7.0.90.0530.04019.95
7.0.80.0130.04719.90
7.0.70.0570.08719.91
7.0.60.0570.07319.89
7.0.50.0500.07320.37
7.0.40.0000.05320.14
7.0.30.0070.04020.10
7.0.20.0130.07320.17
7.0.10.0100.07320.12
7.0.00.0070.05020.05
5.6.280.0000.08021.04
5.6.240.0100.03720.70
5.6.230.0100.04720.59
5.6.220.0070.08020.74
5.6.210.0030.08320.63
5.6.200.0100.04021.07
5.6.190.0130.07020.93
5.6.180.0030.05020.99
5.6.170.0030.06021.13
5.6.160.0070.07721.10
5.6.150.0070.06021.02
5.6.140.0070.08021.09
5.6.130.0100.07721.01
5.6.120.0070.07721.01
5.6.110.0200.08321.03
5.6.100.0070.07321.07
5.6.90.0070.09021.06
5.6.80.0070.07720.35
5.6.70.0000.05020.40
5.6.60.0070.06720.39
5.6.50.0170.07720.44
5.6.40.0130.05720.49
5.6.30.0200.05020.43
5.6.20.0100.08320.46
5.6.10.0070.06320.43
5.6.00.0030.03720.37
5.5.380.0030.07020.36
5.5.370.0000.04720.50
5.5.360.0070.08720.42
5.5.350.0100.04320.47
5.5.340.0170.05320.77
5.5.330.0100.07320.65
5.5.320.0100.08320.84
5.5.310.0030.08320.81
5.5.300.0070.04720.84
5.5.290.0100.06720.83
5.5.280.0170.06320.77
5.5.270.0100.07720.86
5.5.260.0070.05020.85
5.5.250.0100.07720.45
5.5.240.0030.04720.18
5.5.230.0130.05020.22
5.5.220.0030.08720.24
5.5.210.0100.04320.14
5.5.200.0270.06720.09
5.5.190.0170.03320.13
5.5.180.0000.05320.00
5.5.160.0000.04720.23
5.5.150.0030.03720.27
5.5.140.0100.05020.18
5.5.130.0030.04020.24
5.5.120.0070.05020.27
5.5.110.0030.04020.14
5.5.100.0100.07320.05
5.5.90.0030.05320.08
5.5.80.0030.04720.05
5.5.70.0170.07320.11
5.5.60.0070.04320.10
5.5.50.0170.07020.07
5.5.40.0100.04720.16
5.5.30.0100.07019.94
5.5.20.0100.06720.15
5.5.10.0070.07720.13
5.5.00.0030.07720.05
5.4.450.0030.05019.54
5.4.440.0070.04319.37
5.4.430.0130.06319.46
5.4.420.0170.07319.55
5.4.410.0070.04719.06
5.4.400.0100.07019.17
5.4.390.0070.07718.87
5.4.380.0000.07719.12
5.4.370.0100.07018.95
5.4.360.0100.07019.04
5.4.350.0100.07319.04
5.4.340.0000.04319.05
5.4.320.0100.08018.85
5.4.310.0170.05718.90
5.4.300.0030.06319.09
5.4.290.0030.03719.16
5.4.280.0030.03719.16
5.4.270.0000.04719.23
5.4.260.0100.04019.12
5.4.250.0030.07719.04
5.4.240.0030.04718.84
5.4.230.0000.05019.04
5.4.220.0030.06319.11
5.4.210.0100.04719.00
5.4.200.0000.08019.09
5.4.190.0100.07019.11
5.4.180.0070.07018.95
5.4.170.0070.04319.21
5.4.160.0100.05318.85
5.4.150.0030.08319.02
5.4.140.0100.05716.51
5.4.130.0100.05016.45
5.4.120.0100.03716.19
5.4.110.0070.07316.36
5.4.100.0070.07716.49
5.4.90.0000.07716.39
5.4.80.0030.07716.38
5.4.70.0070.03016.43
5.4.60.0030.03316.50
5.4.50.0070.03016.44
5.4.40.0030.06716.50
5.4.30.0030.04016.40
5.4.20.0000.04016.46
5.4.10.0100.03316.43
5.4.00.0100.07015.88
5.3.290.0030.08014.68
5.3.280.0070.03714.66
5.3.270.0030.06714.71
5.3.260.0030.04314.62
5.3.250.0070.05014.69
5.3.240.0070.05014.61
5.3.230.0070.07714.63
5.3.220.0030.04014.49
5.3.210.0070.07714.68
5.3.200.0130.03714.63
5.3.190.0070.07714.52
5.3.180.0070.06314.63
5.3.170.0100.06014.49
5.3.160.0100.07014.57
5.3.150.0000.03714.59
5.3.140.0070.07714.62
5.3.130.0100.08314.47
5.3.120.0030.07014.50
5.3.110.0030.06014.58
5.3.100.0030.04014.15
5.3.90.0030.07314.00
5.3.80.0070.07714.14
5.3.70.0030.04014.15
5.3.60.0130.07014.01
5.3.50.0070.06713.86
5.3.40.0030.03713.96
5.3.30.0130.05714.05
5.3.20.0070.07013.79
5.3.10.0070.04013.71
5.3.00.0030.07013.78
5.2.170.0000.03711.23
5.2.160.0030.03011.20
5.2.150.0070.04711.06
5.2.140.0070.02711.22
5.2.130.0070.05711.16
5.2.120.0200.04711.24
5.2.110.0030.05711.01
5.2.100.0030.03311.03
5.2.90.0000.03311.02
5.2.80.0030.03311.15
5.2.70.0100.05011.21
5.2.60.0100.05311.11
5.2.50.0100.04311.01
5.2.40.0030.03310.90
5.2.30.0100.03011.04
5.2.20.0070.03010.96
5.2.10.0070.04310.89
5.2.00.0070.06010.75
5.1.60.0030.05310.75
5.1.50.0030.05310.75
5.1.40.0030.02710.75
5.1.30.0030.05010.75
5.1.20.0000.04310.75
5.1.10.0070.05010.75
5.1.00.0030.04710.75
5.0.50.0000.04710.75
5.0.40.0030.04710.75
5.0.30.0000.04010.75
5.0.20.0030.04310.75
5.0.10.0070.04010.75
5.0.00.0000.03310.75
4.4.90.0000.02010.75
4.4.80.0000.03710.75
4.4.70.0000.02010.75
4.4.60.0070.03010.75
4.4.50.0000.02010.75
4.4.40.0030.05010.75
4.4.30.0070.01310.75
4.4.20.0030.02010.75
4.4.10.0000.03010.75
4.4.00.0000.05310.75
4.3.110.0000.03710.75
4.3.100.0070.03310.75
4.3.90.0070.03010.75
4.3.80.0000.04310.75
4.3.70.0030.03710.75
4.3.60.0000.04310.75
4.3.50.0030.01710.75
4.3.40.0030.04010.75
4.3.30.0000.02010.75
4.3.20.0000.02310.75
4.3.10.0000.02310.75
4.3.00.0000.03010.75

preferences:
35.66 ms | 400 KiB | 5 Q