3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test1 = array_fill(1, 10, rand(1,50)); $test2 = array_fill(1, 10, rand(1,50)); $test1 = array_replace($test1, $test2);

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)
7.2.00.0060.01019.43
7.1.70.0060.00317.05
7.1.60.0150.01119.17
7.1.50.0070.00316.63
7.1.00.0070.05322.30
7.0.200.0030.01316.64
7.0.140.0000.07722.10
7.0.120.0030.07321.96
7.0.60.0100.08320.02
7.0.50.0000.05717.89
7.0.40.0030.09020.04
7.0.30.0500.07020.17
7.0.20.0330.06320.04
7.0.10.0200.04320.13
7.0.00.0100.05020.31
5.6.280.0100.06320.80
5.6.210.0100.08320.56
5.6.200.0000.07018.16
5.6.190.0000.09020.41
5.6.180.0200.08020.45
5.6.170.0170.04720.51
5.6.160.0170.07020.50
5.6.150.0100.03318.21
5.6.140.0030.08318.15
5.6.130.0100.05718.25
5.6.120.0100.08320.94
5.6.110.0070.04321.10
5.6.100.0130.06020.98
5.6.90.0070.09020.98
5.6.80.0030.06720.50
5.6.70.4270.03720.38
5.5.350.0070.09020.34
5.5.340.0000.04017.91
5.5.330.0070.08320.58
5.5.320.0370.05720.29
5.5.310.0230.05720.26
5.5.300.0100.07718.02
5.5.290.0100.07018.02
5.5.280.0070.05020.72
5.5.270.0030.05320.93
5.5.260.0100.04020.76
5.5.250.0100.07720.49
5.5.240.2800.03320.25
5.4.450.0130.07319.51
5.4.440.0000.08719.48
5.4.430.0070.04019.48
5.4.420.0100.08019.13
5.4.410.0000.04319.31
5.4.400.0070.07019.18
5.4.390.0070.04319.18
5.4.380.0000.04019.15
5.4.370.0030.05318.91
5.4.360.0070.07018.83
5.4.350.0030.06019.00
5.4.340.0030.04318.80
5.4.320.0100.04718.92
5.4.310.0100.07319.08
5.4.300.0000.07019.02
5.4.290.0200.06318.78
5.4.280.0070.03719.18
5.4.270.0000.04019.15
5.4.260.0030.03719.07
5.4.250.0000.04019.13
5.4.240.0030.03718.78
5.4.230.0030.03718.78
5.4.220.0070.03318.80
5.4.210.0000.04019.07
5.4.200.0100.03019.07
5.4.190.0070.04319.17
5.4.180.0000.04018.77
5.4.170.0030.04019.13
5.4.160.0030.03719.09
5.4.150.0070.03319.11
5.4.140.0030.04716.25
5.4.130.0030.03316.34
5.4.120.0030.03716.33
5.4.110.0000.03716.32
5.4.100.0030.03316.27
5.4.90.0030.03316.32
5.4.80.0100.02716.35
5.4.70.0000.04016.31
5.4.60.0070.03716.38
5.4.50.0030.03316.40
5.4.40.0000.04016.31
5.4.30.0030.03716.21
5.4.20.0070.03716.21
5.4.10.0000.03716.38
5.4.00.0030.03315.79
5.3.290.0030.07314.61
5.3.280.0030.03714.52
5.3.270.0000.04014.57
5.3.260.0000.04014.53
5.3.250.0000.03714.54
5.3.240.0100.03014.42
5.3.230.0030.03714.52
5.3.220.0070.03014.39
5.3.210.0030.04314.46
5.3.200.0030.04314.49
5.3.190.0000.04014.54
5.3.180.0030.03714.57
5.3.170.0000.04314.65
5.3.160.0030.03714.49
5.3.150.0000.03714.65
5.3.140.0000.04014.51
5.3.130.0000.04014.52
5.3.120.0000.04014.48
5.3.110.0030.03714.51
5.3.100.0000.04014.14
5.3.90.0070.03314.03
5.3.80.0070.03013.86
5.3.70.0000.06013.95
5.3.60.0030.05313.82
5.3.50.0100.03313.87
5.3.40.0030.06014.03
5.3.30.0000.04713.93
5.3.20.0070.03713.57
5.3.10.0030.04013.58
5.3.00.0000.04313.56
5.2.170.0070.06011.09
5.2.160.0070.05311.07
5.2.150.0100.02711.00
5.2.140.0030.06711.07
5.2.130.0030.05310.95
5.2.120.0070.03311.04
5.2.110.0070.05310.92
5.2.100.0070.03311.08
5.2.90.0070.05711.01
5.2.80.0000.05011.03
5.2.70.0070.03311.05
5.2.60.0030.03310.94
5.2.50.0030.06310.95
5.2.40.0070.05710.81
5.2.30.0030.04011.13
5.2.20.0130.06010.89
5.2.10.0030.06010.86
5.2.00.0070.04710.71
5.1.60.0030.0309.95
5.1.50.0030.0539.98
5.1.40.0030.0539.98
5.1.30.0070.05310.32
5.1.20.0070.05710.34
5.1.10.0030.05710.05
5.1.00.0070.05010.08
5.0.50.0030.0338.53
5.0.40.0000.0308.55
5.0.30.0070.0638.27
5.0.20.0100.0178.10
5.0.10.0030.0478.13
5.0.00.0030.0678.14
4.4.90.0000.0377.82
4.4.80.0100.0177.82
4.4.70.0030.0337.82
4.4.60.0000.0307.82
4.4.50.0030.0237.82
4.4.40.0000.0477.82
4.4.30.0000.0377.82
4.4.20.0000.0337.82
4.4.10.0000.0407.82
4.4.00.0070.0407.82
4.3.110.0000.0277.82
4.3.100.0030.0337.82
4.3.90.0030.0177.82
4.3.80.0030.0337.82
4.3.70.0000.0207.82
4.3.60.0030.0377.82
4.3.50.0070.0307.82
4.3.40.0100.0237.82
4.3.30.0030.0177.82
4.3.20.0000.0377.82
4.3.10.0030.0337.82
4.3.00.0030.0237.82

preferences:
39.87 ms | 400 KiB | 5 Q