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('P1H'), $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.70.0160.00618.30
8.3.60.0120.00616.75
8.3.50.0060.01222.05
8.3.40.0130.00318.92
8.3.30.0040.01118.93
8.3.20.0100.00720.26
8.3.10.0080.00320.93
8.3.00.0040.00420.40
8.2.190.0160.00018.41
8.2.180.0100.01018.54
8.2.170.0090.00922.96
8.2.160.0030.01019.46
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.01422.16
8.2.120.0070.00026.35
8.2.110.0100.00022.41
8.2.100.0040.00717.91
8.2.90.0000.00818.00
8.2.80.0030.00517.97
8.2.70.0000.00817.75
8.2.60.0000.00818.16
8.2.50.0060.00318.07
8.2.40.0080.00018.35
8.2.30.0080.00318.19
8.2.20.0050.00318.01
8.2.10.0000.00818.15
8.2.00.0040.00417.93
8.1.280.0140.00725.92
8.1.270.0000.00724.00
8.1.260.0020.00528.09
8.1.250.0000.00828.09
8.1.240.0090.00020.82
8.1.230.0040.00819.20
8.1.220.0000.00817.80
8.1.210.0040.00420.95
8.1.200.0030.00717.61
8.1.190.0000.00817.60
8.1.180.0030.00618.10
8.1.170.0000.00818.63
8.1.160.0000.00718.97
8.1.150.0000.00920.75
8.1.140.0040.00419.68
8.1.130.0000.00717.77
8.1.120.0070.00017.56
8.1.110.0050.00317.54
8.1.100.0040.00417.69
8.1.90.0040.00417.60
8.1.80.0040.00417.58
8.1.70.0070.00017.70
8.1.60.0000.00817.62
8.1.50.0000.00817.69
8.1.40.0000.00817.61
8.1.30.0030.00617.88
8.1.20.0050.00517.86
8.1.10.0000.00717.74
8.1.00.0050.00317.66
8.0.300.0050.00519.73
8.0.290.0030.00616.75
8.0.280.0000.00718.51
8.0.270.0000.00717.32
8.0.260.0000.00617.43
8.0.250.0030.00317.19
8.0.240.0030.00317.22
8.0.230.0030.00317.13
8.0.220.0040.00417.12
8.0.210.0030.00317.13
8.0.200.0030.00317.10
8.0.190.0060.00317.29
8.0.180.0040.00417.18
8.0.170.0000.00817.22
8.0.160.0000.00717.21
8.0.150.0000.00717.05
8.0.140.0080.00317.03
8.0.130.0030.00313.60
8.0.120.0000.00817.23
8.0.110.0080.00017.12
8.0.100.0000.00716.94
8.0.90.0030.00517.11
8.0.80.0120.00317.10
8.0.70.0000.01017.05
8.0.60.0040.00417.20
8.0.50.0030.00316.96
8.0.30.0110.00917.18
8.0.20.0080.01217.46
8.0.10.0070.00017.17
8.0.00.0070.01116.79
7.4.330.0060.00015.11
7.4.320.0030.00516.54
7.4.300.0060.00016.68
7.4.290.0070.00316.69
7.4.280.0040.00416.59
7.4.270.0000.00716.76
7.4.260.0000.00716.62
7.4.250.0030.00316.56
7.4.240.0000.00916.69
7.4.230.0030.00316.91
7.4.220.0070.01016.71
7.4.210.0060.00816.72
7.4.200.0000.00716.87
7.4.160.0070.00916.83
7.4.150.0090.00917.40
7.4.140.0140.00817.86
7.4.130.0100.00716.70
7.4.120.0070.01316.66
7.4.110.0130.01016.85
7.4.100.0120.00616.75
7.4.90.0120.00616.86
7.4.80.0090.00919.39
7.4.70.0100.00716.89
7.4.60.0140.00316.83
7.4.50.0030.01316.72
7.4.40.0060.01116.63
7.4.30.0100.00716.82
7.4.00.0060.00915.25
7.3.330.0000.00813.46
7.3.320.0030.00213.32
7.3.310.0050.00316.60
7.3.300.0030.00616.36
7.3.290.0000.00716.48
7.3.280.0090.00716.53
7.3.270.0070.01017.40
7.3.260.0140.00616.71
7.3.250.0060.01316.59
7.3.240.0090.01016.65
7.3.230.0130.00616.58
7.3.210.0100.00716.72
7.3.200.0060.00916.70
7.3.190.0130.01016.57
7.3.180.0000.01616.79
7.3.170.0170.00016.54
7.3.160.0070.01016.78
7.3.120.0030.01515.01
7.3.110.0070.01415.29
7.3.100.0030.01315.21
7.3.90.0050.00515.15
7.3.80.0120.00314.75
7.3.70.0000.01314.98
7.3.60.0040.01115.11
7.3.50.0030.01415.16
7.3.40.0000.00914.80
7.3.30.0070.00714.96
7.3.20.0060.00316.93
7.3.10.0080.00516.76
7.3.00.0030.00816.86
7.2.330.0130.00716.61
7.2.320.0030.01316.78
7.2.310.0110.00617.06
7.2.300.0060.00916.69
7.2.290.0060.01016.68
7.2.250.0120.00315.37
7.2.240.0030.01315.18
7.2.230.0130.00315.06
7.2.220.0090.00315.46
7.2.210.0040.00715.05
7.2.200.0000.01415.32
7.2.190.0060.00315.24
7.2.180.0120.00415.23
7.2.170.0060.00615.27
7.2.130.0000.01417.29
7.2.120.0000.01116.90
7.2.110.0100.00317.00
7.2.100.0030.01017.01
7.2.90.0090.00417.00
7.2.80.0080.00416.93
7.2.70.0060.00616.99
7.2.60.0050.01017.09
7.2.50.0030.01117.11
7.2.40.0100.00516.95
7.2.30.0170.01017.15
7.2.20.0070.00917.00
7.2.10.0100.00417.15
7.2.00.0030.00918.41
7.1.330.0040.01115.87
7.1.320.0070.00316.00
7.1.310.0070.00416.14
7.1.300.0080.00416.03
7.1.290.0030.01015.98
7.1.280.0080.00415.75
7.1.270.0060.01015.81
7.1.260.0070.00715.52
7.1.250.0060.00615.77
7.1.200.0070.00315.76
7.1.100.0980.00316.62
7.1.70.0040.00417.31
7.1.60.0080.00317.34
7.1.50.0070.01317.23
7.1.00.0030.07322.51
7.0.200.2260.01014.78
7.0.110.0300.05320.27
7.0.100.0670.04320.25
7.0.90.0270.09320.34
7.0.80.0330.05020.23
7.0.70.0230.06020.29
7.0.60.0300.05320.34
7.0.50.0330.06320.27
7.0.40.0300.05720.32
7.0.30.0370.06720.25
7.0.20.0200.06020.34
7.0.10.0530.05720.30
7.0.00.0470.04720.37
5.6.260.0070.07020.87
5.6.250.0100.05320.78
5.6.240.0230.05320.86
5.6.230.0070.06020.92
5.6.220.0100.05321.07
5.6.210.0000.06320.88
5.6.200.0070.05720.99
5.6.190.0100.05321.00
5.6.180.0270.04721.00
5.6.170.0130.06021.00
5.6.160.0100.05320.92
5.6.150.0270.04020.94
5.6.140.0030.06321.01
5.6.130.0170.05020.79
5.6.120.0170.05021.03
5.6.110.0170.05320.82
5.6.100.0130.05720.90
5.6.90.0030.06020.96
5.6.80.0130.04720.21
5.6.70.0070.05320.37
5.6.60.0130.07720.29
5.6.50.0130.04720.26
5.6.40.0100.05020.10
5.6.30.0130.05320.42
5.6.20.0130.05320.09
5.6.10.0100.05320.18
5.6.00.0030.06320.17

preferences:
54.55 ms | 401 KiB | 5 Q