3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dateParts = ['year', 'month']; $timeParts = ['hour']; $parts = ['date' => $dateParts, 'time' => $timeParts]; var_dump(array_reduce($parts, array_merge, []));

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.0170.00318.43
8.3.50.0110.01021.99
8.3.40.0150.00618.86
8.3.30.0100.00318.92
8.3.20.0040.00420.21
8.3.10.0040.00421.78
8.3.00.0000.00719.05
8.2.180.0160.00318.54
8.2.170.0110.00422.96
8.2.160.0080.00622.05
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0000.00720.98
8.2.110.0100.00022.28
8.2.100.0110.00018.03
8.2.90.0040.00418.03
8.2.80.0080.00018.05
8.2.70.0050.00318.16
8.2.60.0030.00818.16
8.2.50.0000.00818.10
8.2.40.0050.00321.02
8.2.30.0070.00019.31
8.2.20.0000.00717.79
8.2.10.0070.00018.07
8.2.00.0040.00417.71
8.1.280.0090.00925.92
8.1.270.0060.00318.88
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0090.00417.48
8.1.230.0080.00320.97
8.1.220.0040.00417.79
8.1.210.0030.00518.77
8.1.200.0040.00717.35
8.1.190.0070.00317.25
8.1.180.0070.00018.10
8.1.170.0080.00018.56
8.1.160.0000.00819.04
8.1.150.0040.00418.83
8.1.140.0000.00817.34
8.1.130.0030.00317.80
8.1.120.0030.00417.45
8.1.110.0040.00417.46
8.1.100.0000.00817.43
8.1.90.0060.00317.50
8.1.80.0000.00717.35
8.1.70.0040.00417.29
8.1.60.0050.00317.46
8.1.50.0000.00917.40
8.1.40.0040.00417.49
8.1.30.0000.00717.68
8.1.20.0030.00617.63
8.1.10.0000.00717.54
8.1.00.0050.00217.48
8.0.300.0040.00420.14
8.0.290.0090.00016.63
8.0.280.0050.00318.47
8.0.270.0040.00417.16
8.0.260.0030.00317.20
8.0.250.0000.00917.04
8.0.240.0040.00417.02
8.0.230.0000.00717.04
8.0.220.0000.00716.98
8.0.210.0030.00316.98
8.0.200.0030.00316.89
8.0.190.0040.00417.04
8.0.180.0000.00716.96
8.0.170.0000.00717.00
8.0.160.0000.00817.01
8.0.150.0000.00716.84
8.0.140.0020.00516.96
8.0.130.0090.00013.35
8.0.120.0030.00616.91
8.0.110.0040.00416.96
8.0.100.0040.00416.96
8.0.90.0080.00016.82
8.0.80.0060.00916.94
8.0.70.0000.00816.87
8.0.60.0040.00416.80
8.0.50.0000.00717.00
8.0.30.0100.00917.14
8.0.20.0160.00717.40
8.0.10.0000.00816.93
8.0.00.0050.01216.90
7.4.330.0020.00215.03
7.4.320.0060.00016.64
7.4.300.0030.00316.45
7.4.290.0000.00716.59
7.4.280.0000.00916.48
7.4.270.0040.00416.60
7.4.260.0000.00716.46
7.4.250.0000.00816.45
7.4.240.0030.00316.51
7.4.230.0000.00716.42
7.4.220.0100.00716.45
7.4.210.0000.01516.67
7.4.200.0040.00416.69
7.4.160.0080.00816.30
7.4.150.0060.01417.40
7.4.140.0110.00917.86
7.4.130.0120.00516.42
7.4.120.0090.00916.41
7.4.110.0100.01416.61
7.4.100.0060.01516.59
7.4.90.0170.00316.34
7.4.80.0070.01519.39
7.4.70.0100.00716.58
7.4.60.0100.00616.32
7.4.50.0030.00516.59
7.4.40.0090.00616.65
7.4.30.0180.00416.51
7.4.00.0040.01415.11
7.3.330.0030.00313.06
7.3.320.0000.00513.11
7.3.310.0030.00316.11
7.3.300.0000.00616.21
7.3.290.0060.01016.28
7.3.280.0090.00916.27
7.3.270.0070.01917.40
7.3.260.0120.00616.44
7.3.250.0130.00416.38
7.3.240.0090.01316.26
7.3.230.0100.01316.44
7.3.210.0180.00416.26
7.3.200.0090.01219.39
7.3.190.0050.01016.38
7.3.180.0130.00316.38
7.3.170.0070.01016.46
7.3.160.0030.01316.45
7.3.10.0070.00416.40
7.3.00.0070.00316.60
7.2.330.0000.01716.43
7.2.320.0090.00816.36
7.2.310.0050.01216.53
7.2.300.0130.01016.47
7.2.290.0100.01316.43
7.2.130.0070.00716.48
7.2.120.0060.00616.79
7.2.110.0040.00416.46
7.2.100.0080.00416.75
7.2.90.0070.00717.09
7.2.80.0080.00616.83
7.2.70.0090.00016.77
7.2.60.0050.01016.70
7.2.50.0090.00416.73
7.2.40.0030.00616.50
7.2.30.0000.01016.91
7.2.20.0060.00316.55
7.2.10.0070.00417.03
7.2.00.0090.00316.65
7.1.250.0000.01415.84
7.1.200.0080.00415.75
7.1.70.0000.00817.11
7.1.60.0100.01319.22
7.1.50.0090.00316.64
7.1.00.0030.07722.27
7.0.200.0040.00416.73
7.0.140.0030.05322.13
7.0.60.0170.06719.82
7.0.50.0100.07317.89
7.0.40.0070.07320.20
7.0.30.0270.07020.09
7.0.20.0270.08320.09
7.0.10.0170.07720.09
7.0.00.0100.08020.09
5.6.280.0100.06321.05
5.6.210.0130.07020.60
5.6.200.0070.08718.21
5.6.190.0070.08020.45
5.6.180.0400.06020.39
5.6.170.0300.06720.62
5.6.160.0100.05720.52
5.6.150.0100.05018.17
5.6.140.0070.03718.18
5.6.130.0100.04018.12
5.6.120.0270.06321.00
5.6.110.0300.05321.01
5.6.100.0030.06021.11
5.6.90.0030.07021.02
5.6.80.0030.08320.47
5.5.350.0300.08020.42
5.5.340.0030.08017.99
5.5.330.0100.07320.20
5.5.320.0270.03020.31
5.5.310.0300.07720.28
5.5.300.0130.04318.01
5.5.290.0100.04018.01
5.5.280.0130.07720.65
5.5.270.0070.08320.86
5.5.260.0130.08020.76
5.5.250.0030.06020.61
5.5.240.0030.07720.28
5.4.450.0530.07019.61
5.4.440.0870.04019.15
5.4.430.0730.05319.44
5.4.420.0700.05319.16
5.4.410.0870.04319.41
5.4.400.0600.06019.16
5.4.390.0470.07019.22
5.4.380.0300.07718.62
5.4.370.0270.05018.68
5.4.360.0200.05718.70
5.4.350.0370.05018.70
5.4.340.0230.06718.69
5.4.320.0230.05318.70
5.4.310.0130.07318.68
5.4.300.0470.04318.48
5.4.290.0330.06018.51
5.4.280.0370.06718.68
5.4.270.0370.07318.64
5.4.260.0270.06318.64
5.4.250.0230.05018.77
5.4.240.0200.05718.46
5.4.230.0230.05018.68
5.4.220.0270.06018.68
5.4.210.0230.05718.68
5.4.200.0170.05716.64
5.4.190.0230.05318.66
5.4.180.0370.04318.50
5.4.170.0130.06318.63
5.4.160.0430.04318.63
5.4.150.0230.05018.56
5.4.140.0370.06016.23
5.4.130.0100.06016.17
5.4.120.0270.04716.23
5.4.110.0070.06016.16
5.4.100.0370.04316.05
5.4.90.0230.06716.25
5.4.80.0370.06316.22
5.4.70.0230.05316.31
5.4.60.0230.05716.11
5.4.50.0270.06716.01
5.4.40.0230.04716.12
5.4.30.0200.06716.23
5.4.20.0300.06316.23
5.4.10.0170.07316.29
5.4.00.0370.05315.72
5.3.290.0130.06314.58
5.3.280.0270.06714.51
5.3.270.0130.08714.50
5.3.260.0270.07714.68
5.3.250.0200.08314.66
5.3.240.0230.05314.50
5.3.230.0300.06314.57
5.3.220.0230.07314.64
5.3.210.0200.08714.66
5.3.200.0330.07314.66
5.3.190.0530.05314.64
5.3.180.0270.06714.55
5.3.170.0300.05714.53
5.3.160.0230.05014.49
5.3.150.0270.05014.66
5.3.140.0200.05014.59
5.3.130.0230.05314.55
5.3.120.0330.05314.54
5.3.110.0230.06314.64
5.3.100.0370.05314.03
5.3.90.0370.04013.98
5.3.80.0270.05714.04
5.3.70.0430.05313.99
5.3.60.0330.06313.93
5.3.50.0300.04013.95
5.3.40.0130.05313.92
5.3.30.0130.05713.89
5.3.20.0330.05013.60
5.3.10.0330.05013.62
5.3.00.0270.04713.55
5.2.170.0200.04711.20
5.2.160.0170.04311.10
5.2.150.0270.04011.07
5.2.140.0270.04011.29
5.2.130.0330.05711.07
5.2.120.0200.04311.06
5.2.110.0170.04011.10
5.2.100.0230.03311.04
5.2.90.0100.04711.13
5.2.80.0230.04011.16
5.2.70.0200.03711.25
5.2.60.0170.04311.03
5.2.50.0230.04310.98
5.2.40.0170.04710.95
5.2.30.0270.05711.02
5.2.20.0170.04310.99
5.2.10.0130.05710.96
5.2.00.0170.05710.73
5.1.60.0270.03310.05
5.1.50.0170.04310.03
5.1.40.0270.03710.11
5.1.30.0100.05310.43
5.1.20.0130.05310.42
5.1.10.0170.04310.13
5.1.00.0170.03310.07
5.0.50.0130.0408.52
5.0.40.0130.0338.50
5.0.30.0100.0508.29
5.0.20.0100.0338.37
5.0.10.0100.0338.36
5.0.00.0130.0478.17
4.4.90.0170.0206.32
4.4.80.0100.0276.32
4.4.70.0030.0306.32
4.4.60.0030.0236.32
4.4.50.0030.0236.32
4.4.40.0100.0306.32
4.4.30.0030.0236.32
4.4.20.0000.0306.32
4.4.10.0070.0236.32
4.4.00.0070.0376.32
4.3.110.0070.0276.32
4.3.100.0030.0236.32
4.3.90.0100.0206.32
4.3.80.0100.0476.32
4.3.70.0000.0306.32
4.3.60.0130.0176.32
4.3.50.0130.0176.32
4.3.40.0070.0406.32
4.3.30.0070.0206.32
4.3.20.0130.0236.32
4.3.10.0130.0236.32
4.3.00.0130.0177.60

preferences:
50.14 ms | 401 KiB | 5 Q