3v4l.org

run code in 300+ PHP versions simultaneously
<?php $from = new DateTime('1970-01-01 22:00:00'); $to = (clone $from); $to->modify('+5 hours'); $dp = new DatePeriod($from, new DateInterval('P1D'), $to); $r = array(); foreach ($dp as $d) { $r[] = $d->format('hA'); } print_r($r);

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.0100.00716.88
8.3.50.0070.01122.17
8.3.40.0100.01018.80
8.3.30.0040.01118.90
8.3.20.0060.01320.21
8.3.10.0070.00320.98
8.3.00.0030.00620.57
8.2.180.0040.01118.66
8.2.170.0060.00922.96
8.2.160.0180.00319.55
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0080.00022.21
8.2.120.0040.00426.35
8.2.110.0030.00619.48
8.2.100.0030.00718.16
8.2.90.0030.00519.48
8.2.80.0040.00419.38
8.2.70.0040.00417.75
8.2.60.0040.00418.05
8.2.50.0040.00418.10
8.2.40.0050.00320.59
8.2.30.0000.00719.36
8.2.20.0040.00418.17
8.2.10.0040.00418.20
8.2.00.0040.00417.89
8.1.280.0070.01325.92
8.1.270.0040.00424.04
8.1.260.0050.00328.09
8.1.250.0080.00028.09
8.1.240.0060.00324.04
8.1.230.0070.00418.02
8.1.220.0070.00317.89
8.1.210.0030.00618.77
8.1.200.0060.00317.60
8.1.190.0050.00317.60
8.1.180.0080.00018.10
8.1.170.0040.00418.91
8.1.160.0040.00422.21
8.1.150.0040.00419.04
8.1.140.0040.00419.71
8.1.130.0030.00317.88
8.1.120.0040.00417.62
8.1.110.0030.00617.73
8.1.100.0070.00017.72
8.1.90.0000.00717.62
8.1.80.0030.00517.72
8.1.70.0000.00717.66
8.1.60.0000.00717.73
8.1.50.0050.00317.70
8.1.40.0050.00317.63
8.1.30.0000.00817.90
8.1.20.0040.00717.86
8.1.10.0000.00817.75
8.1.00.0000.00817.71
8.0.300.0040.00418.77
8.0.290.0000.00717.00
8.0.280.0030.00318.50
8.0.270.0030.00317.30
8.0.260.0060.00017.50
8.0.250.0040.00417.26
8.0.240.0040.00417.11
8.0.230.0040.00417.20
8.0.220.0000.00717.18
8.0.210.0070.00017.04
8.0.200.0000.00617.25
8.0.190.0000.00817.20
8.0.180.0040.00417.05
8.0.170.0000.00817.13
8.0.160.0040.00417.12
8.0.150.0030.00517.04
8.0.140.0030.00717.04
8.0.130.0030.00313.50
8.0.120.0040.00417.02
8.0.110.0070.00317.17
8.0.100.0040.00417.11
8.0.90.0000.00717.08
8.0.80.0000.01717.10
8.0.70.0000.01017.01
8.0.60.0040.00417.07
8.0.50.0000.00817.06
8.0.30.0110.00917.30
8.0.20.0080.01417.43
8.0.10.0050.00317.22
8.0.00.0100.00717.04
7.4.330.0020.00215.21
7.4.320.0000.00716.75
7.4.300.0030.00316.79
7.4.290.0030.00816.71
7.4.280.0050.00516.71
7.4.270.0000.00716.75
7.4.260.0070.00016.79
7.4.250.0030.00316.71
7.4.240.0030.00316.71
7.4.230.0000.00716.68
7.4.220.0060.00916.71
7.4.210.0100.00516.80
7.4.200.0000.00716.75
7.4.160.0060.00916.73
7.4.150.0150.00617.40
7.4.140.0090.01317.86
7.4.130.0100.00716.85
7.4.120.0050.01416.79
7.4.110.0100.01316.76
7.4.100.0120.00616.58
7.4.90.0100.00716.71
7.4.80.0130.00319.39
7.4.70.0030.01416.91
7.4.60.0060.01116.64
7.4.50.0070.00516.41
7.4.40.0170.00016.56
7.4.30.0110.00616.71
7.4.10.0100.00715.29
7.4.00.0070.00915.02
7.3.330.0040.00413.31
7.3.320.0050.00013.20
7.3.310.0030.00316.32
7.3.300.0070.00016.48
7.3.290.0030.00316.46
7.3.280.0090.00916.47
7.3.270.0130.00617.40
7.3.260.0110.00616.83
7.3.250.0120.00616.60
7.3.240.0090.00916.66
7.3.230.0100.00716.63
7.3.210.0130.00316.41
7.3.200.0060.01116.52
7.3.190.0080.00816.80
7.3.180.0060.01016.62
7.3.170.0130.00316.43
7.3.160.0030.01316.51
7.3.130.0150.00015.07
7.3.120.0100.00515.05
7.3.110.0050.01215.04
7.3.100.0080.00814.92
7.3.90.0060.00615.06
7.3.80.0040.00915.05
7.3.70.0100.00415.05
7.3.60.0110.00315.10
7.3.50.0070.00614.86
7.3.40.0100.00415.08
7.3.30.0050.00915.00
7.3.20.0050.01216.73
7.3.10.0040.00916.93
7.3.00.0080.00416.84
7.2.330.0070.01016.68
7.2.320.0070.01016.98
7.2.310.0100.00716.86
7.2.300.0120.00616.82
7.2.290.0140.00316.79
7.2.260.0090.00615.45
7.2.250.0130.00515.33
7.2.240.0080.00915.16
7.2.230.0040.01415.22
7.2.220.0030.01015.16
7.2.210.0070.00815.46
7.2.200.0050.00815.23
7.2.190.0090.00315.37
7.2.180.0090.00415.27
7.2.170.0050.00715.34
7.2.160.0070.01115.43
7.2.150.0030.01316.95
7.2.140.0000.01517.28
7.2.130.0040.00817.13
7.2.120.0000.01617.20
7.2.110.0090.00917.02
7.2.100.0090.00317.24
7.2.90.0000.01417.05
7.2.80.0030.01917.27
7.2.70.0060.00917.38
7.2.60.0030.01417.39
7.2.50.0030.01517.26
7.2.40.0030.00717.05
7.2.30.0040.01217.32
7.2.20.0070.00817.28
7.2.10.0030.00717.30
7.2.00.0040.00918.53
7.1.330.0050.01116.06
7.1.320.0080.00515.75
7.1.310.0060.00815.83
7.1.300.0040.00915.94
7.1.290.0040.01116.08
7.1.280.0000.01216.08
7.1.270.0050.01115.87
7.1.260.0050.01016.12
7.1.250.0070.00616.03
7.1.240.0030.01315.88
7.1.230.0120.00615.78
7.1.220.0070.00715.99
7.1.210.0060.00916.21
7.1.200.0100.00716.01
7.1.190.0030.00915.79
7.1.180.0140.00315.77
7.1.170.0100.00315.93
7.1.160.0030.01016.19
7.1.150.0110.00315.96
7.1.140.0060.00916.02
7.1.130.0100.00315.67
7.1.120.0090.00616.04
7.1.110.0030.01015.88
7.1.100.0070.01116.16
7.1.90.0110.00715.84
7.1.80.0070.01016.00
7.1.70.0070.00316.43
7.1.60.0050.00716.75
7.1.50.0160.00015.77
7.1.40.0060.00615.88
7.1.30.0080.00816.09
7.1.20.0060.00616.08
7.1.10.0070.01015.97
7.1.00.0090.03819.13
7.0.330.0060.01015.33
7.0.320.0060.00315.40
7.0.310.0030.01215.63
7.0.300.0060.00615.55
7.0.290.0060.00615.73
7.0.280.0030.00915.75
7.0.270.0090.00315.55
7.0.260.0070.00715.63
7.0.250.0040.00715.74
7.0.240.0060.01015.71
7.0.230.0100.00715.37
7.0.220.0110.00415.59
7.0.210.0060.00615.63
7.0.200.0140.00715.36
7.0.190.0070.00715.56
7.0.180.0100.00315.63
7.0.170.0100.00615.72
7.0.160.0070.00715.45
7.0.150.0030.01215.65
7.0.140.0080.00315.70
7.0.130.0100.00315.50
7.0.120.0000.01215.79
7.0.110.0350.03517.94
7.0.100.0180.03417.95
7.0.90.0150.03917.92
7.0.80.0160.03117.89
7.0.70.0150.03417.92
7.0.60.0170.03317.61
7.0.50.0200.02717.95
7.0.40.0180.02817.00
7.0.30.0180.03116.95
7.0.20.0130.03316.93
7.0.10.0270.03417.02
7.0.00.0150.03316.96
5.6.400.0030.01014.16
5.6.390.0060.01014.56
5.6.380.0040.01214.83
5.6.370.0060.01014.59
5.6.360.0060.00914.76
5.6.350.0040.01114.65
5.6.340.0070.00314.48
5.6.330.0030.01014.75
5.6.320.0000.01714.71
5.6.310.0100.00314.60
5.6.300.0060.00614.75
5.6.290.0070.00714.77
5.6.280.0080.00414.61
5.6.270.0090.00914.67
5.6.260.0060.03317.79
5.6.250.0120.02617.91
5.6.240.0080.03217.80
5.6.230.0080.03017.79
5.6.220.0070.03317.68
5.6.210.0070.03217.70
5.6.200.0020.03917.74
5.6.190.0050.03417.94
5.6.180.0100.03017.72
5.6.170.0120.02917.71
5.6.160.0110.02517.82
5.6.150.0070.03317.68
5.6.140.0070.03317.68
5.6.130.0130.02617.68
5.6.120.0030.03317.65
5.6.110.0120.02817.73
5.6.100.0100.03017.80
5.6.90.0120.03017.74
5.6.80.0050.04217.37
5.6.70.0030.03617.41
5.6.60.0130.03117.30
5.6.50.0070.03517.42
5.6.40.0070.03317.42
5.6.30.0080.03317.36
5.6.20.0070.03017.46
5.6.10.0120.02717.38
5.6.00.0070.03017.30

preferences:
59.09 ms | 401 KiB | 5 Q