3v4l.org

run code in 300+ PHP versions simultaneously
<?php $params = array( 'foo' => 'bar', 'baz' => 'foobar', ); $params += array( 'foo' => 'baz', 'new' => 'barbaz', ); print_r($params);

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.0120.00616.50
8.3.60.0090.00616.63
8.3.50.0240.00516.40
8.3.40.0040.01118.67
8.3.30.0000.01518.77
8.3.20.0080.00018.66
8.3.10.0000.00818.55
8.3.00.0100.00019.02
8.2.180.0080.00816.38
8.2.170.0170.00022.96
8.2.160.0100.00320.41
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00319.48
8.2.110.0000.00919.43
8.2.100.0070.00717.78
8.2.90.0040.00418.98
8.2.80.0040.00417.97
8.2.70.0030.00517.38
8.2.60.0040.00418.04
8.2.50.0040.00418.04
8.2.40.0000.00819.23
8.2.30.0040.00417.72
8.2.20.0000.00917.61
8.2.10.0040.00417.73
8.2.00.0030.00617.51
8.1.280.0110.00425.92
8.1.270.0080.00024.66
8.1.260.0030.00626.35
8.1.250.0070.00028.09
8.1.240.0000.00921.37
8.1.230.0040.00717.89
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.22
8.1.190.0050.00317.23
8.1.180.0050.00318.10
8.1.170.0040.00417.62
8.1.160.0000.00718.95
8.1.150.0000.00818.61
8.1.140.0000.00717.41
8.1.130.0030.00317.43
8.1.120.0070.00017.40
8.1.110.0040.00417.25
8.1.100.0030.00317.41
8.1.90.0040.00317.42
8.1.80.0000.00717.38
8.1.70.0000.00717.36
8.1.60.0000.00717.50
8.1.50.0040.00417.24
8.1.40.0000.00817.34
8.1.30.0000.00817.57
8.1.20.0030.00617.57
8.1.10.0080.00017.41
8.1.00.0050.00317.41
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0040.00418.54
8.0.270.0070.00017.19
8.0.260.0030.00316.86
8.0.250.0040.00416.83
8.0.240.0030.00316.95
8.0.230.0030.00616.97
8.0.220.0030.00316.92
8.0.210.0000.00716.79
8.0.200.0060.00016.80
8.0.190.0070.00016.83
8.0.180.0040.00416.93
8.0.170.0090.00016.85
8.0.160.0000.00716.87
8.0.150.0000.00816.91
8.0.140.0070.00016.68
8.0.130.0030.00313.37
8.0.120.0080.00016.73
8.0.110.0080.00016.75
8.0.100.0040.00416.94
8.0.90.0030.00516.74
8.0.80.0140.00016.83
8.0.70.0000.00716.70
8.0.60.0060.00316.92
8.0.50.0040.00416.91
8.0.30.0130.00616.99
8.0.20.0180.00416.75
8.0.10.0070.00016.90
8.0.00.0120.00616.85
7.4.330.0000.00512.94
7.4.320.0030.00316.37
7.4.300.0030.00316.41
7.4.290.0080.00316.41
7.4.280.0030.00616.44
7.4.270.0030.00616.44
7.4.260.0000.00513.25
7.4.250.0100.00016.55
7.4.240.0030.00316.52
7.4.230.0000.00716.62
7.4.220.0050.02216.27
7.4.210.0090.00616.51
7.4.200.0030.00316.54
7.4.190.0000.01016.38
7.4.160.0040.01216.59
7.4.150.0150.00416.32
7.4.140.0150.00817.86
7.4.130.0150.00916.44
7.4.120.0030.01216.57
7.4.110.0120.00616.30
7.4.100.0140.00316.25
7.4.90.0070.01416.39
7.4.80.0070.01019.39
7.4.70.0190.00316.43
7.4.60.0060.01216.35
7.4.50.0030.00616.24
7.4.40.0090.00316.10
7.4.30.0120.00316.27
7.4.00.0090.00614.60
7.3.330.0000.00613.00
7.3.320.0050.00013.01
7.3.310.0070.00016.19
7.3.300.0000.00716.03
7.3.290.0080.00716.13
7.3.280.0030.01516.14
7.3.270.0080.00816.11
7.3.260.0100.00716.24
7.3.240.0000.01616.36
7.3.230.0070.01416.32
7.3.210.0090.00616.49
7.3.200.0130.00716.17
7.3.190.0110.00816.07
7.3.180.0040.01216.46
7.3.170.0100.00616.21
7.3.160.0070.00716.41
7.3.120.0000.01414.48
7.2.330.0130.00316.44
7.2.320.0070.01016.47
7.2.310.0170.00316.40
7.2.300.0040.01316.46
7.2.290.0080.01216.60
7.2.00.0060.00319.29
7.1.100.0080.00618.20
7.1.70.0060.00316.95
7.1.60.0100.00719.25
7.1.50.0040.00716.64
7.1.00.0030.04022.30
7.0.200.0030.01116.54
7.0.140.0000.08022.04
7.0.120.0030.04722.04
7.0.60.0270.07321.81
7.0.50.0000.04317.84
7.0.40.0030.04320.06
7.0.30.0070.08020.30
7.0.20.0070.06720.08
7.0.10.0030.04320.29
7.0.00.0130.08720.22
5.6.280.0070.07021.03
5.6.210.0130.04020.72
5.6.200.0100.06318.17
5.6.190.0000.05020.41
5.6.180.0100.07720.56
5.6.170.0100.04020.43
5.6.160.0070.06320.40
5.6.150.0070.04320.34
5.6.140.0070.05720.21
5.6.130.0070.05020.33
5.6.120.0030.08320.40
5.6.110.0000.09020.26
5.6.100.0170.08020.31
5.6.90.0030.08320.08
5.6.80.0100.07319.51
5.6.70.0030.09319.70
5.6.60.0030.04719.80
5.6.50.0100.07019.72
5.6.40.0100.08319.68
5.6.30.0030.05719.52
5.6.20.0170.06319.81
5.6.10.0100.06019.63
5.6.00.0100.07719.78
5.5.350.0130.04320.39
5.5.340.0100.05318.03
5.5.330.0130.08020.37
5.5.320.0100.06720.36
5.5.310.0030.04320.25
5.5.300.0100.04320.15
5.5.290.0030.04319.91
5.5.280.0430.04020.23
5.5.270.0030.07719.96
5.5.260.0030.05320.25
5.5.250.0000.09019.78
5.5.240.0100.07719.62
5.5.230.0070.06019.57
5.5.220.0030.06319.27
5.5.210.0030.08019.46
5.5.200.0130.06319.58
5.5.190.0030.04319.36
5.5.180.0070.06019.49
5.5.160.0100.08019.58
5.5.150.0030.04719.57
5.5.140.0100.03719.32
5.5.130.0000.04719.27
5.5.120.0030.06019.48
5.5.110.0070.03719.47
5.5.100.0000.04019.32
5.5.90.0000.04319.18
5.5.80.0000.04019.50
5.5.70.0000.04319.21
5.5.60.0000.04319.41
5.5.50.0070.08019.21
5.5.40.0100.05019.45
5.5.30.0100.04019.46
5.5.20.0070.03719.45
5.5.10.0000.07019.27
5.5.00.0100.06019.45
5.4.450.0130.07719.11
5.4.440.0070.06719.50
5.4.430.0070.06319.47
5.4.420.0070.04019.23
5.4.410.0100.07019.20
5.4.400.0000.06318.93
5.4.390.0030.08319.00
5.4.380.0030.04319.12
5.4.370.0030.03718.92
5.4.360.0070.07718.81
5.4.350.0030.05319.18
5.4.340.0070.07719.18
5.4.320.0000.08019.18
5.4.310.0070.04019.14
5.4.300.0000.04319.15
5.4.290.0030.03718.79
5.4.280.0070.03719.11
5.4.270.0100.03018.80
5.4.260.0070.04319.14
5.4.250.0030.04718.78
5.4.240.0030.03719.07
5.4.230.0070.03319.08
5.4.220.0070.07319.15
5.4.210.0070.05319.11
5.4.200.0070.04318.90
5.4.190.0130.06318.92
5.4.180.0000.08319.14
5.4.170.0000.04018.91
5.4.160.0030.05019.15
5.4.150.0000.04019.12
5.4.140.0030.03716.28
5.4.130.0030.03316.24
5.4.120.0030.03316.16
5.4.110.0000.03716.41
5.4.100.0000.03716.33
5.4.90.0000.03716.36
5.4.80.0070.03016.13
5.4.70.0070.03016.13
5.4.60.0030.03316.25
5.4.50.0030.03316.21
5.4.40.0000.03716.38
5.4.30.0000.03716.26
5.4.20.0000.03716.36
5.4.10.0000.03716.34
5.4.00.0200.03015.70
5.3.290.0070.07714.54
5.3.280.0030.03714.53
5.3.270.0100.04314.39
5.3.260.0000.04314.52
5.3.250.0000.04014.52
5.3.240.0030.03714.40
5.3.230.0100.03014.49
5.3.220.0000.04014.49
5.3.210.0030.03714.58
5.3.200.0030.03714.46
5.3.190.0030.03714.35
5.3.180.0030.03714.48
5.3.170.0030.03314.35
5.3.160.0070.03314.48
5.3.150.0100.03014.34
5.3.140.0030.03714.34
5.3.130.0100.03014.36
5.3.120.0100.03014.50
5.3.110.0000.04014.48
5.3.100.0030.03314.01
5.3.90.0070.03314.11
5.3.80.0000.03713.83
5.3.70.0000.03713.96
5.3.60.0000.03713.93
5.3.50.0000.05013.88
5.3.40.0100.03013.91
5.3.30.0100.02713.83
5.3.20.0130.04713.70
5.3.10.0030.05713.60
5.3.00.0130.04013.56
5.2.170.0000.03011.30
5.2.160.0000.03711.14
5.2.150.0070.02311.14
5.2.140.0100.03711.04
5.2.130.0100.06011.11
5.2.120.0130.05010.96
5.2.110.0030.04010.95
5.2.100.0100.02311.26
5.2.90.0030.03011.07
5.2.80.0030.03311.17
5.2.70.0100.05710.98
5.2.60.0030.04710.93
5.2.50.0030.03711.00
5.2.40.0070.03310.87
5.2.30.0070.03710.97
5.2.20.0030.06310.96
5.2.10.0030.06310.90
5.2.00.0030.05010.70
5.1.60.0070.0509.89
5.1.50.0000.0509.95
5.1.40.0030.0539.92
5.1.30.0030.04310.48
5.1.20.0030.03010.43
5.1.10.0000.04010.11
5.1.00.0070.0379.96
5.0.50.0030.0438.50
5.0.40.0030.0308.45
5.0.30.0030.0638.32
5.0.20.0030.0338.34
5.0.10.0030.0278.16
5.0.00.0000.0708.13
4.4.90.0000.0236.82
4.4.80.0000.0206.82
4.4.70.0000.0306.82
4.4.60.0000.0336.82
4.4.50.0030.0336.82
4.4.40.0070.0476.82
4.4.30.0000.0306.82
4.4.20.0070.0236.82
4.4.10.0000.0406.82
4.4.00.0030.0436.82
4.3.110.0000.0236.82
4.3.100.0030.0236.82
4.3.90.0100.0206.82
4.3.80.0030.0536.82
4.3.70.0030.0276.82
4.3.60.0000.0206.82
4.3.50.0000.0306.82
4.3.40.0000.0376.82
4.3.30.0030.0176.82
4.3.20.0000.0176.82
4.3.10.0030.0176.82
4.3.00.0000.0376.82

preferences:
36.68 ms | 401 KiB | 5 Q