3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('date.timezone', 'America/Los_Angeles'); $nowDate = new \DateTime('now', new DateTimeZone('America/New_York')); $programTime = new \DateTime(date('Y-m-d') . " 06:00", new DateTimeZone('America/New_York')); $lengthSeconds = 75 * 60; $endDate = $programTime->add(new \DateInterval('PT' . $lengthSeconds . 'S')); $diff = $endDate->getTimestamp() - $nowDate->getTimestamp(); var_dump($diff, $endDate->format('d-m-y H:i'), $nowDate->format('d-m-y H:i'), $endDate->getTimestamp(), $nowDate->getTimestamp() ); /* Local gives me: int -69587 string '22-07-14 07:15' (length=14) string '23-07-14 02:34' (length=14) int 1406027700 int 1406097287 */

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)
8.3.60.0120.00916.86
8.3.50.0260.00522.05
8.3.40.0040.01119.09
8.3.30.0140.00318.79
8.3.20.0070.00020.16
8.3.10.0040.00423.66
8.3.00.0060.00319.56
8.2.180.0040.01416.88
8.2.170.0120.00322.96
8.2.160.0070.00720.57
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0030.00620.90
8.2.110.0100.00021.07
8.2.100.0090.00317.85
8.2.90.0060.00619.11
8.2.80.0050.00517.97
8.2.70.0030.00517.75
8.2.60.0040.00417.93
8.2.50.0070.00318.07
8.2.40.0000.00818.16
8.2.30.0100.00018.40
8.2.20.0000.00717.93
8.2.10.0050.00218.14
8.2.00.0000.00718.00
8.1.280.0120.00325.92
8.1.270.0040.00422.11
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0000.00921.97
8.1.230.0040.00718.93
8.1.220.0060.00317.74
8.1.210.0030.00618.77
8.1.200.0060.00317.48
8.1.190.0040.00417.48
8.1.180.0000.00818.10
8.1.170.0000.00818.65
8.1.160.0000.00821.98
8.1.150.0050.00319.03
8.1.140.0040.00417.79
8.1.130.0000.00717.90
8.1.120.0040.00317.74
8.1.110.0000.00817.59
8.1.100.0050.00317.70
8.1.90.0030.00617.70
8.1.80.0030.00517.58
8.1.70.0030.00517.54
8.1.60.0000.00917.70
8.1.50.0030.00617.57
8.1.40.0040.00417.56
8.1.30.0030.00617.71
8.1.20.0040.00417.81
8.1.10.0000.00717.73
8.1.00.0050.00517.63
8.0.300.0030.00618.90
8.0.290.0040.00417.00
8.0.280.0030.00318.46
8.0.270.0000.00817.05
8.0.260.0060.00017.31
8.0.250.0030.00317.16
8.0.240.0000.00717.23
8.0.230.0050.00217.13
8.0.220.0000.00717.20
8.0.210.0000.00817.05
8.0.200.0030.00317.25
8.0.190.0000.00717.26
8.0.180.0070.00317.16
8.0.170.0000.00917.09
8.0.160.0040.00417.10
8.0.150.0040.00417.04
8.0.140.0080.00417.18
8.0.130.0050.00013.53
8.0.120.0040.00417.13
8.0.110.0000.00717.14
8.0.100.0040.00417.12
8.0.90.0000.00817.21
8.0.80.0060.00917.11
8.0.70.0000.00717.02
8.0.60.0070.00017.00
8.0.50.0000.00816.96
8.0.30.0080.01117.34
8.0.20.0170.00917.40
8.0.10.0000.00717.18
8.0.00.0170.00516.88
7.4.330.0030.00315.11
7.4.320.0030.00316.62
7.4.300.0000.00616.52
7.4.290.0000.01016.65
7.4.280.0030.01016.58
7.4.270.0030.00516.69
7.4.260.0030.00816.58
7.4.250.0030.00616.54
7.4.240.0050.00216.63
7.4.230.0070.00016.75
7.4.220.0000.00716.38
7.4.210.0050.01116.52
7.4.200.0040.00316.76
7.4.160.0110.00916.70
7.4.150.0030.01917.40
7.4.140.0200.00617.86
7.4.130.0130.00716.81
7.4.120.0070.01016.49
7.4.110.0100.01016.69
7.4.100.0060.01216.80
7.4.90.0030.01316.75
7.4.80.0110.00719.39
7.4.70.0080.00816.70
7.4.60.0180.00016.88
7.4.50.0000.00816.57
7.4.40.0150.00916.64
7.4.30.0130.00916.66
7.4.00.0120.00314.98
7.3.330.0000.00513.31
7.3.320.0000.00713.37
7.3.310.0030.00316.41
7.3.300.0000.00716.37
7.3.290.0030.01316.51
7.3.280.0080.00816.42
7.3.270.0180.00017.40
7.3.260.0120.00616.65
7.3.250.0090.00916.48
7.3.240.0150.00716.50
7.3.230.0030.01416.54
7.3.210.0070.01016.58
7.3.200.0060.01119.39
7.3.190.0070.01016.59
7.3.180.0040.01516.84
7.3.170.0090.00916.50
7.3.160.0000.01716.57
7.3.120.0090.00914.79
7.3.10.0000.01016.67
7.3.00.0040.01116.88
7.2.330.0090.01217.07
7.2.320.0060.01116.95
7.2.310.0070.01016.80
7.2.300.0120.00916.92
7.2.290.0100.00517.02
7.2.130.0090.00616.95
7.2.120.0030.01017.13
7.2.110.0030.00916.98
7.2.100.0030.00617.19
7.2.90.0110.00017.23
7.2.80.0110.00017.05
7.2.70.0060.00917.14
7.2.60.0030.01017.14
7.2.50.0070.00316.96
7.2.40.0000.01117.19
7.2.30.0040.00817.06
7.2.20.0070.00717.16
7.2.10.0030.01016.98
7.2.00.0060.01118.29
7.1.250.0000.01016.11
7.1.200.0060.00616.07
7.1.100.0720.00317.93
7.1.70.0070.01017.30
7.1.60.0170.00719.70
7.1.50.0120.00017.08
7.1.00.0030.07722.54
7.0.200.0710.00315.03
7.0.140.0000.07721.95
7.0.90.0070.08721.93
7.0.80.0070.04321.69
7.0.70.0030.07721.67
7.0.60.0100.07721.73
7.0.50.0070.08022.14
7.0.40.0100.04320.17
7.0.30.0070.07720.15
7.0.20.0000.08720.15
7.0.10.0100.04020.10
7.0.00.0070.04019.99
5.6.280.0070.07020.78
5.6.240.0030.06020.58
5.6.230.0000.07720.50
5.6.220.0100.05320.67
5.6.210.0100.07720.65
5.6.200.0070.08020.95
5.6.190.0000.08721.05
5.6.180.0030.08721.01
5.6.170.0070.08321.04
5.6.160.0070.08021.04
5.6.150.0030.07720.96
5.6.140.0070.08020.95
5.6.130.0100.06021.04
5.6.120.0070.09020.93
5.6.110.0070.07721.07
5.6.100.0100.08320.93
5.6.90.0030.08020.93
5.6.80.0130.06320.42
5.6.70.0030.05020.48
5.6.60.0030.08320.54
5.6.50.0000.08320.46
5.6.40.0070.08020.36
5.6.30.0070.05020.29
5.6.20.0030.08320.49
5.6.10.0070.04320.41
5.6.00.0100.07720.30
5.5.380.0070.08020.36
5.5.370.0030.08020.41
5.5.360.0100.08020.37
5.5.350.0030.08320.42
5.5.340.0070.04720.78
5.5.330.0100.07720.88
5.5.320.0070.07720.79
5.5.310.0000.07720.80
5.5.300.0000.08320.88
5.5.290.0100.07720.87
5.5.280.0100.07720.77
5.5.270.0070.07320.87
5.5.260.0100.05020.90
5.5.250.0000.04320.63
5.5.240.0070.07320.20
5.5.230.0030.06320.20
5.5.220.0130.07020.19
5.5.210.0030.08020.27
5.5.200.0130.07020.14
5.5.190.0030.08020.17
5.5.180.0100.06320.17
5.5.160.0000.05020.23
5.5.150.0130.03720.23
5.5.140.0030.07320.10
5.5.130.0030.04720.17
5.5.120.0030.05320.20
5.5.110.0130.07020.23
5.5.100.0070.05720.05
5.5.90.0030.06720.06
5.5.80.0100.07020.11
5.5.70.0030.08020.10
5.5.60.0030.04319.96
5.5.50.0000.09319.89
5.5.40.0000.05720.02
5.5.30.0070.08320.05
5.5.20.0130.04020.03
5.5.10.0030.07320.10
5.5.00.0070.07319.93
5.4.450.0000.06719.30
5.4.440.0070.04319.11
5.4.430.0070.07719.35
5.4.420.0030.08019.38
5.4.410.0070.03319.34
5.4.400.0030.04719.10
5.4.390.0030.07019.05
5.4.380.0030.07719.13
5.4.370.0000.08019.13
5.4.360.0030.07719.14
5.4.350.0030.04319.04
5.4.340.0070.07019.10
5.4.320.0000.08018.95
5.4.310.0000.07719.23
5.4.300.0030.05019.09
5.4.290.0030.07719.01
5.4.280.0030.07318.91
5.4.270.0000.06018.96
5.4.260.0030.07719.02
5.4.250.0030.08019.08
5.4.240.0000.04319.11
5.4.230.0030.07719.22
5.4.220.0000.06018.78
5.4.210.0030.04318.96
5.4.200.0000.08719.04
5.4.190.0030.06019.03
5.4.180.0000.04318.95
5.4.170.0070.07319.02
5.4.160.0000.08318.88
5.4.150.0030.07019.04
5.4.140.0000.07716.43
5.4.130.0030.07016.32
5.4.120.0030.04016.38
5.4.110.0030.05316.29
5.4.100.0070.03716.27
5.4.90.0000.05716.36
5.4.80.0000.06716.44
5.4.70.0000.06716.47
5.4.60.0000.05316.29
5.4.50.0030.07316.45
5.4.40.0070.06316.23
5.4.30.0070.07016.36
5.4.20.0030.06316.34
5.4.10.0030.07316.24
5.4.00.0000.05715.78
5.3.290.0030.04314.53
5.3.280.0070.06314.61
5.3.270.0070.04714.59
5.3.260.0000.05714.61
5.3.250.0070.07014.58
5.3.240.0030.04014.59
5.3.230.0030.04014.46
5.3.220.0030.07014.50
5.3.210.0030.04714.48
5.3.200.0030.07314.53
5.3.190.0070.06314.43
5.3.180.0030.07314.45
5.3.170.0070.06014.40
5.3.160.0030.06014.53
5.3.150.0000.07014.55
5.3.140.0030.07714.50
5.3.130.0030.07314.36
5.3.120.0000.07714.52
5.3.110.0000.07014.41
5.3.100.0030.04014.03
5.3.90.0030.04013.88
5.3.80.0030.04313.89
5.3.70.0070.06713.88
5.3.60.0030.06313.86
5.3.50.0030.07313.91
5.3.40.0030.05713.93
5.3.30.0000.08013.87
5.3.20.0030.04013.55
5.3.10.0170.03313.63
5.3.00.0030.07313.39
5.2.170.0000.06710.94
5.2.160.0000.05311.16
5.2.150.0000.04711.13
5.2.140.0030.06011.21
5.2.130.0000.06310.89
5.2.120.0030.06010.93
5.2.110.0070.06010.89
5.2.100.0000.06311.11
5.2.90.0030.06011.03
5.2.80.0070.04710.92
5.2.70.0000.04311.05
5.2.60.0000.05311.07
5.2.50.0030.06311.09
5.2.40.0030.05711.02
5.2.30.0070.06010.97
5.2.20.0000.05710.80
5.2.10.0070.05010.77
5.2.00.0030.05710.76
5.1.60.0070.05010.06
5.1.50.0000.0579.84
5.1.40.0000.0309.97
5.1.30.0030.05710.28
5.1.20.0070.03010.27
5.1.10.0000.03310.05
5.1.00.0000.03010.06
5.0.50.0030.0238.87
5.0.40.0000.0478.87
5.0.30.0070.0608.87
5.0.20.0030.0308.87
5.0.10.0000.0378.87
5.0.00.0000.0608.87
4.4.90.0030.0338.87
4.4.80.0030.0338.87
4.4.70.0030.0308.87
4.4.60.0000.0178.87
4.4.50.0000.0338.87
4.4.40.0070.0408.87
4.4.30.0070.0208.87
4.4.20.0000.0238.87
4.4.10.0030.0138.87
4.4.00.0000.0438.87
4.3.110.0000.0278.87
4.3.100.0000.0178.87
4.3.90.0000.0378.87
4.3.80.0100.0378.87
4.3.70.0000.0378.87
4.3.60.0030.0238.87
4.3.50.0030.0338.87
4.3.40.0070.0478.87
4.3.30.0000.0308.87
4.3.20.0000.0308.87
4.3.10.0070.0308.87
4.3.00.0000.0338.87

preferences:
51.57 ms | 401 KiB | 5 Q