3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <body> <?php $a=array("a"=>"red","b"=>"green"); array_merge($a,array("blue"=>"yellow")); print_r($a); ?> </body> </html>

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.0070.00718.43
8.3.50.0120.00821.19
8.3.40.0040.01118.73
8.3.30.0110.00318.59
8.3.20.0040.00420.16
8.3.10.0040.00423.54
8.3.00.0040.00419.31
8.2.180.0070.00716.63
8.2.170.0090.00622.96
8.2.160.0070.00720.38
8.2.150.0040.00425.66
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00617.50
8.2.110.0060.00322.00
8.2.100.0060.00617.50
8.2.90.0080.00019.22
8.2.80.0100.00017.97
8.2.70.0030.00517.38
8.2.60.0040.00418.04
8.2.50.0030.00618.07
8.2.40.0000.00819.30
8.2.30.0040.00419.84
8.2.20.0030.00517.59
8.2.10.0080.00018.02
8.2.00.0070.00018.02
8.1.280.0090.00925.92
8.1.270.0060.00324.66
8.1.260.0080.00026.35
8.1.250.0070.00328.09
8.1.240.0150.00322.54
8.1.230.0110.00017.42
8.1.220.0000.01017.74
8.1.210.0050.00318.77
8.1.200.0000.00817.10
8.1.190.0060.00317.10
8.1.180.0030.00518.10
8.1.170.0060.00318.44
8.1.160.0000.00721.86
8.1.150.0000.00818.71
8.1.140.0040.00417.31
8.1.130.0070.00017.61
8.1.120.0040.00417.40
8.1.110.0030.00517.39
8.1.100.0040.00417.27
8.1.90.0040.00417.43
8.1.80.0000.00717.27
8.1.70.0000.00717.36
8.1.60.0050.00217.39
8.1.50.0040.00417.41
8.1.40.0060.00317.50
8.1.30.0060.00317.47
8.1.20.0040.00417.54
8.1.10.0000.00717.38
8.1.00.0030.00617.34
8.0.300.0030.00618.77
8.0.290.0040.00416.75
8.0.280.0000.00718.38
8.0.270.0030.00317.16
8.0.260.0030.00317.20
8.0.250.0000.00716.80
8.0.240.0030.00316.77
8.0.230.0070.00316.91
8.0.220.0080.00016.82
8.0.210.0000.00716.83
8.0.200.0000.00616.74
8.0.190.0060.00316.81
8.0.180.0000.00716.70
8.0.170.0000.00816.84
8.0.160.0030.00416.77
8.0.150.0040.00416.63
8.0.140.0070.00016.77
8.0.130.0030.00613.21
8.0.120.0000.00716.83
8.0.110.0000.00716.81
8.0.100.0050.00216.93
8.0.90.0040.00416.85
8.0.80.0090.00616.79
8.0.70.0040.00416.83
8.0.60.0000.00816.79
8.0.50.0020.00516.84
8.0.30.0070.01116.86
8.0.20.0080.01017.40
8.0.10.0030.00416.89
8.0.00.0070.01216.79
7.4.330.0050.00015.08
7.4.320.0040.00416.38
7.4.300.0000.00716.57
7.4.290.0000.00716.38
7.4.280.0040.00416.53
7.4.270.0030.00316.55
7.4.260.0040.00416.50
7.4.250.0040.00416.51
7.4.240.0030.00316.50
7.4.230.0040.00416.28
7.4.220.0040.01516.47
7.4.210.0070.00916.48
7.4.200.0000.00816.39
7.4.160.0160.00016.56
7.4.150.0060.01917.40
7.4.140.0110.01117.86
7.4.130.0110.00916.46
7.4.120.0090.00916.48
7.4.110.0140.00616.44
7.4.100.0090.01216.51
7.4.90.0110.00616.43
7.4.80.0090.00919.39
7.4.70.0080.00816.30
7.4.60.0070.01016.47
7.4.50.0080.00016.45
7.4.40.0090.00616.29
7.4.30.0060.01216.34
7.4.00.0060.00914.84
7.3.330.0000.00613.02
7.3.320.0070.00013.05
7.3.310.0000.00716.22
7.3.300.0060.00016.12
7.3.290.0000.00716.16
7.3.280.0090.00716.13
7.3.270.0170.00017.40
7.3.260.0030.02116.38
7.3.250.0070.01016.09
7.3.240.0100.00716.31
7.3.230.0110.00716.39
7.3.210.0120.00616.36
7.3.200.0030.01316.14
7.3.190.0100.00716.18
7.3.180.0120.00916.18
7.3.170.0060.01016.27
7.3.160.0100.00716.25
7.2.330.0120.01216.20
7.2.320.0060.01116.72
7.2.310.0100.00716.20
7.2.300.0150.00316.52
7.2.290.0030.01316.40
7.2.60.0030.00616.72
7.2.00.0050.00519.25
7.1.200.0030.00615.66
7.1.100.0030.00718.23
7.1.70.0000.00717.21
7.1.60.0160.01019.17
7.1.50.0210.01734.44
7.1.00.0030.07722.44
7.0.200.0000.00916.56
7.0.60.0030.07019.82
7.0.50.0070.08017.80
7.0.40.0070.05020.30
7.0.30.0230.05020.17
7.0.20.0230.07320.17
7.0.10.0070.09020.03
7.0.00.0100.07320.12
5.6.210.0100.05720.46
5.6.200.0100.08018.19
5.6.190.0070.04320.61
5.6.180.0100.07020.49
5.6.170.0400.06720.44
5.6.160.0130.07720.40
5.6.150.0030.08718.09
5.6.140.0070.08018.16
5.6.130.0000.04318.12
5.6.120.0070.07720.97
5.6.110.0100.06321.12
5.6.100.0070.07321.00
5.6.90.0070.04320.96
5.6.80.0070.08020.50
5.6.70.4500.03720.49
5.5.350.0200.03720.37
5.5.340.0070.03717.93
5.5.330.0030.04720.20
5.5.320.0070.08320.32
5.5.310.0370.04320.24
5.5.300.0170.04318.01
5.5.290.0130.06317.88
5.5.280.0030.05720.72
5.5.270.0130.07720.83
5.5.260.0000.06320.75
5.5.250.0100.06720.58
5.5.240.0300.06720.11
5.4.450.1000.05719.44
5.4.440.1030.05319.47
5.4.430.1100.04019.40
5.4.420.0870.06019.57
5.4.410.0870.05718.99
5.4.400.0800.06319.19
5.4.390.1000.06719.25
5.4.380.1130.07319.19
5.4.370.0130.06319.10
5.4.360.0170.04719.08
5.4.350.0170.05319.03
5.4.340.0530.05318.80
5.4.320.0800.07018.95
5.4.310.0900.05319.18
5.4.300.0870.05319.24
5.4.290.0800.04318.94
5.4.280.0770.05719.21
5.4.270.0800.05019.06
5.4.260.0870.05318.77
5.4.250.0800.05719.05
5.4.240.0930.05019.05
5.4.230.0870.08319.23
5.4.220.0830.07018.98
5.4.210.0400.07319.18
5.4.200.0170.05019.17
5.4.190.0270.05018.79
5.4.180.0770.05318.93
5.4.170.0900.05019.05
5.4.160.0800.05019.22
5.4.150.0700.06019.07
5.4.140.0130.04716.18
5.4.130.0230.03716.18
5.4.120.0470.05316.42
5.4.110.0730.04316.44
5.4.100.0570.04716.17
5.4.90.0070.07016.21
5.4.80.0130.04716.36
5.4.70.0300.06716.39
5.4.60.0400.03316.41
5.4.50.0100.06716.28
5.4.40.0030.06716.33
5.4.30.0030.06316.40
5.4.20.0000.07016.41

preferences:
44.43 ms | 401 KiB | 5 Q