3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(100=>'a',200=>'b',300=>'c',400=>'d'); array_unshift($a,'z'); print_R($a); // What you have to do $a = array(100=>'a',200=>'b',300=>'c',400=>'d'); $a = array(0=>'z') + $a;

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.0090.01216.38
8.3.50.0120.00817.34
8.3.40.0160.00318.67
8.3.30.0090.00618.54
8.3.20.0040.00418.60
8.3.10.0090.00920.48
8.3.00.0080.00019.26
8.2.180.0170.00316.63
8.2.170.0070.00722.96
8.2.160.0070.01022.18
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0070.00019.64
8.2.110.0060.00322.08
8.2.100.0090.00317.72
8.2.90.0050.00317.97
8.2.80.0050.00317.97
8.2.70.0040.00417.63
8.2.60.0080.00017.80
8.2.50.0090.00018.07
8.2.40.0040.00418.22
8.2.30.0040.00417.86
8.2.20.0000.00717.57
8.2.10.0030.00517.64
8.2.00.0000.00817.77
8.1.280.0100.01025.92
8.1.270.0000.00824.66
8.1.260.0050.00326.35
8.1.250.0060.00328.09
8.1.240.0090.00020.71
8.1.230.0110.00020.85
8.1.220.0090.00017.74
8.1.210.0030.00618.96
8.1.200.0060.00317.35
8.1.190.0090.00317.53
8.1.180.0040.00418.10
8.1.170.0040.00418.66
8.1.160.0000.00718.81
8.1.150.0040.00418.51
8.1.140.0070.00317.28
8.1.130.0030.00317.82
8.1.120.0030.00317.40
8.1.110.0000.00817.27
8.1.100.0070.00017.34
8.1.90.0000.00717.36
8.1.80.0000.00717.46
8.1.70.0000.00717.29
8.1.60.0050.00217.57
8.1.50.0050.00317.33
8.1.40.0050.00317.43
8.1.30.0030.00517.46
8.1.20.0000.00917.57
8.1.10.0000.00717.45
8.1.00.0030.00617.41
8.0.300.0070.00019.86
8.0.290.0000.00716.75
8.0.280.0080.00018.34
8.0.270.0030.00517.18
8.0.260.0050.00316.88
8.0.250.0000.00716.91
8.0.240.0030.00716.86
8.0.230.0070.00016.80
8.0.220.0070.00016.94
8.0.210.0070.00016.89
8.0.200.0030.00316.83
8.0.190.0070.00016.93
8.0.180.0030.00616.79
8.0.170.0030.00616.88
8.0.160.0030.00316.95
8.0.150.0030.00516.70
8.0.140.0080.00316.81
8.0.130.0030.00313.34
8.0.120.0040.00416.74
8.0.110.0000.00716.71
8.0.100.0040.00416.83
8.0.90.0050.00316.80
8.0.80.0030.01216.81
8.0.70.0040.00416.86
8.0.60.0080.00016.94
8.0.50.0000.00716.83
8.0.30.0100.01117.11
8.0.20.0160.00517.00
8.0.10.0000.00717.04
8.0.00.0170.00516.64
7.4.330.0000.00512.85
7.4.320.0040.00416.44
7.4.300.0040.00416.42
7.4.290.0080.00016.35
7.4.280.0000.00816.44
7.4.270.0030.00316.51
7.4.260.0030.00313.19
7.4.250.0000.00816.42
7.4.240.0070.00016.53
7.4.230.0000.00716.34
7.4.220.0030.01616.42
7.4.210.0070.01116.52
7.4.200.0000.00716.18
7.4.190.0030.00316.68
7.4.160.0110.00716.39
7.4.150.0150.00316.48
7.4.140.0130.00416.44
7.4.130.0100.00716.34
7.4.120.0110.00616.45
7.4.110.0000.01716.46
7.4.100.0000.01616.59
7.4.90.0130.00816.34
7.4.80.0110.00716.28
7.4.70.0070.01816.38
7.4.60.0060.01116.55
7.4.50.0000.00916.36
7.4.40.0000.01116.49
7.4.30.0100.01116.19
7.4.00.0060.01214.68
7.3.330.0070.00013.11
7.3.320.0040.00413.04
7.3.310.0050.00216.32
7.3.300.0000.00616.14
7.3.290.0090.00616.18
7.3.280.0120.00516.21
7.3.270.0140.00316.14
7.3.260.0160.00616.29
7.3.250.0120.00616.30
7.3.240.0040.01416.34
7.3.230.0030.01316.38
7.3.210.0000.01616.22
7.3.200.0100.01019.39
7.3.190.0130.01016.23
7.3.180.0030.01616.52
7.3.170.0030.01216.26
7.3.160.0060.01216.38
7.3.120.0030.00714.40
7.3.10.0090.00615.95
7.3.00.0140.00615.93
7.2.330.0120.00616.62
7.2.320.0090.00916.50
7.2.310.0100.01316.54
7.2.300.0070.01016.55
7.2.290.0030.01416.32
7.2.130.0130.00316.25
7.2.120.0120.00616.43
7.2.110.0060.00916.49
7.2.100.0190.00316.23
7.2.90.0140.00815.93
7.2.80.0170.00416.29
7.2.70.0150.00616.13
7.2.60.0130.00816.82
7.2.50.0210.00816.56
7.2.40.0130.00415.93
7.2.30.0170.00016.06
7.2.20.0070.00716.25
7.2.10.0120.00615.71
7.2.00.0070.01016.52
7.1.250.0100.00715.15
7.1.200.0060.00615.73
7.1.70.0070.00717.13
7.1.60.0040.00817.18
7.1.50.0080.00816.77
7.1.00.0030.07022.57
7.0.200.0000.01216.91
7.0.140.0000.07722.04
7.0.120.0000.07721.97
7.0.60.0070.06320.00
7.0.50.0030.04717.88
7.0.40.0070.07320.30
7.0.30.0430.04720.24
7.0.20.0270.06320.09
7.0.10.0400.06320.24
7.0.00.0070.04320.07
5.6.280.0030.07321.12
5.6.210.0100.04320.68
5.6.200.0100.06718.23
5.6.190.0030.08320.67
5.6.180.0170.06320.58
5.6.170.0370.04320.57
5.6.160.0070.08320.46
5.6.150.0070.08318.28
5.6.140.0000.04018.15
5.6.130.0130.07718.17
5.6.120.0100.04720.96
5.6.110.0000.07021.13
5.6.100.0070.08321.10
5.6.90.0100.08021.00
5.6.80.0030.08720.33
5.6.70.0330.07020.57
5.5.350.0230.08020.39
5.5.340.0070.04017.95
5.5.330.0030.04320.29
5.5.320.0070.04720.41
5.5.310.0230.08320.26
5.5.300.0000.04318.02
5.5.290.0100.06017.97
5.5.280.0070.09020.87
5.5.270.0000.07320.79
5.5.260.0130.08020.97
5.5.250.0100.04720.68
5.5.240.0030.03720.25
5.4.450.0070.08019.34
5.4.440.0070.08019.19
5.4.430.0170.07719.19
5.4.420.0130.07019.47
5.4.410.0270.03019.17
5.4.400.0070.04319.16
5.4.390.0100.07319.23
5.4.380.0000.08018.92
5.4.370.0100.07019.15
5.4.360.0030.08719.12
5.4.350.0030.08018.85
5.4.340.0070.06018.97
5.4.320.0100.04318.85
5.4.310.0070.08019.24
5.4.300.0100.07318.92
5.4.290.0130.04719.11
5.4.280.0130.06719.00
5.4.270.0130.07319.14
5.4.260.0030.04019.09
5.4.250.0230.05019.11
5.4.240.0070.06319.25
5.4.230.0070.06718.97
5.4.220.0100.06318.96
5.4.210.0100.07319.23
5.4.200.0130.06718.84
5.4.190.0000.05019.23
5.4.180.0100.07318.86
5.4.170.0130.03019.06
5.4.160.0030.07318.85
5.4.150.0030.06718.86
5.4.140.0030.04016.40
5.4.130.0030.03716.46
5.4.120.0070.03316.43
5.4.110.0130.03716.43
5.4.100.0030.07016.30
5.4.90.0100.05316.41
5.4.80.0030.04016.48
5.4.70.0130.06316.25
5.4.60.0000.05316.32
5.4.50.0000.07016.27
5.4.40.0070.06316.32
5.4.30.0030.05716.40
5.4.20.0200.05716.27
5.4.10.0030.05316.48
5.4.00.0070.07715.79
5.3.290.0070.07714.82
5.3.280.0170.06714.63
5.3.270.0000.04014.61
5.3.260.0000.04314.63
5.3.250.0070.03314.52
5.3.240.0000.04014.64
5.3.230.0070.04014.73
5.3.220.0070.07714.55
5.3.210.0070.04014.61
5.3.200.0030.08014.56
5.3.190.0130.07314.47
5.3.180.0130.03714.61
5.3.170.0070.07314.70
5.3.160.0070.07014.58
5.3.150.0000.06714.55
5.3.140.0030.08014.60
5.3.130.0000.08014.60
5.3.120.0200.06714.61
5.3.110.0030.04714.43
5.3.100.0100.07014.04
5.3.90.0030.05014.00
5.3.80.0030.07314.05
5.3.70.0030.06014.06
5.3.60.0100.07314.14
5.3.50.0030.05713.91
5.3.40.0070.07313.96
5.3.30.0130.04013.95
5.3.20.0030.06013.61
5.3.10.0100.06713.70
5.3.00.0030.08313.66
5.2.170.0000.07311.30
5.2.160.0030.05711.14
5.2.150.0030.05011.17
5.2.140.0030.03311.19
5.2.130.0030.05011.11
5.2.120.0070.04011.08
5.2.110.0070.05011.13
5.2.100.0100.03311.09
5.2.90.0070.05310.98
5.2.80.0070.07011.14
5.2.70.0130.03311.23
5.2.60.0030.03011.09
5.2.50.0030.03011.08
5.2.40.0000.03311.13
5.2.30.0000.03311.01
5.2.20.0000.03010.95
5.2.10.0000.03011.01
5.2.00.0030.02710.72
5.1.60.0000.0279.97
5.1.50.0070.0209.89
5.1.40.0000.0279.81
5.1.30.0000.02710.38
5.1.20.0000.02710.36
5.1.10.0070.04010.14
5.1.00.0000.02710.07
5.0.50.0000.0208.51
5.0.40.0000.0208.46
5.0.30.0000.0308.18
5.0.20.0000.0208.14
5.0.10.0000.0208.32
5.0.00.0000.0308.13
4.4.90.0000.0177.88
4.4.80.0030.0137.88
4.4.70.0030.0137.88
4.4.60.0000.0177.88
4.4.50.0030.0137.88
4.4.40.0000.0277.88
4.4.30.0070.0107.88
4.4.20.0030.0137.88
4.4.10.0000.0277.88
4.4.00.0000.0237.88
4.3.110.0000.0177.88
4.3.100.0000.0177.88
4.3.90.0000.0137.88
4.3.80.0000.0237.88
4.3.70.0000.0137.88
4.3.60.0000.0177.88
4.3.50.0030.0137.88
4.3.40.0000.0237.88
4.3.30.0000.0137.88
4.3.20.0030.0137.88
4.3.10.0000.0177.88
4.3.00.0000.0177.88

preferences:
40.26 ms | 401 KiB | 5 Q