3v4l.org

run code in 300+ PHP versions simultaneously
<?php $one = array(array('key'=>'val')); $two = array(array('key1'=>'val1'),array('key2'=>'val2')); array_unshift($two, $one); print_r($two);

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.0040.01118.06
8.3.50.0100.00721.98
8.3.40.0070.00718.77
8.3.30.0040.01118.96
8.3.20.0040.00420.09
8.3.10.0080.00022.10
8.3.00.0000.00822.58
8.2.180.0190.00318.16
8.2.170.0110.00322.96
8.2.160.0040.01120.47
8.2.150.0000.00924.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0070.00417.50
8.2.110.0070.00320.52
8.2.100.0070.00317.72
8.2.90.0040.00418.03
8.2.80.0080.00017.97
8.2.70.0030.00517.63
8.2.60.0050.00317.93
8.2.50.0040.00418.07
8.2.40.0030.00518.22
8.2.30.0000.00918.02
8.2.20.0000.00717.46
8.2.10.0000.00819.41
8.2.00.0040.00417.46
8.1.280.0030.01425.92
8.1.270.0120.00322.04
8.1.260.0050.00226.35
8.1.250.0000.00828.09
8.1.240.0090.00022.05
8.1.230.0110.00020.81
8.1.220.0050.00317.74
8.1.210.0070.00318.88
8.1.200.0070.00317.23
8.1.190.0060.00317.29
8.1.180.0030.00518.10
8.1.170.0060.00318.29
8.1.160.0070.00021.93
8.1.150.0080.00018.57
8.1.140.0070.00017.43
8.1.130.0050.00317.81
8.1.120.0050.00317.38
8.1.110.0040.00417.36
8.1.100.0000.00717.23
8.1.90.0080.00317.33
8.1.80.0080.00017.40
8.1.70.0040.00417.40
8.1.60.0050.00317.53
8.1.50.0040.00417.35
8.1.40.0000.00717.46
8.1.30.0040.00417.55
8.1.20.0040.00417.62
8.1.10.0040.00417.53
8.1.00.0040.00417.45
8.0.300.0040.00420.00
8.0.290.0080.00017.05
8.0.280.0000.00718.41
8.0.270.0030.00317.09
8.0.260.0000.00816.66
8.0.250.0030.00316.92
8.0.240.0030.00516.89
8.0.230.0000.00716.82
8.0.220.0040.00416.68
8.0.210.0030.00316.86
8.0.200.0000.00616.77
8.0.190.0040.00416.76
8.0.180.0030.00516.77
8.0.170.0080.00016.90
8.0.160.0070.00016.80
8.0.150.0050.00216.67
8.0.140.0020.00516.70
8.0.130.0000.00613.25
8.0.120.0040.00416.82
8.0.110.0000.00716.79
8.0.100.0000.00816.68
8.0.90.0040.00416.84
8.0.80.0040.01116.80
8.0.70.0040.00416.86
8.0.60.0000.00816.85
8.0.50.0050.00216.63
8.0.30.0120.01416.72
8.0.20.0130.00917.40
8.0.10.0000.00716.95
8.0.00.0070.01516.73
7.4.330.0060.00015.00
7.4.320.0040.00416.43
7.4.300.0030.00316.50
7.4.290.0040.00416.34
7.4.280.0000.00816.45
7.4.270.0000.00716.33
7.4.260.0000.00716.52
7.4.250.0000.00716.40
7.4.240.0060.00216.55
7.4.230.0000.00716.40
7.4.220.0070.01016.57
7.4.210.0040.01116.56
7.4.200.0000.00716.36
7.4.190.0080.00016.48
7.4.160.0040.01216.27
7.4.150.0210.00317.40
7.4.140.0110.00617.86
7.4.130.0090.00816.40
7.4.120.0110.00716.31
7.4.110.0180.00316.33
7.4.100.0150.00316.29
7.4.90.0130.00316.47
7.4.80.0090.01319.39
7.4.70.0130.00616.28
7.4.60.0060.01516.41
7.4.50.0000.00816.36
7.4.40.0030.01022.77
7.4.30.0120.00416.32
7.4.00.0080.00714.92
7.3.330.0030.00313.05
7.3.320.0000.00513.04
7.3.310.0000.00716.12
7.3.300.0070.00016.15
7.3.290.0060.00816.11
7.3.280.0070.01016.08
7.3.270.0110.01117.40
7.3.260.0130.00316.03
7.3.250.0090.00716.31
7.3.240.0120.01216.21
7.3.230.0150.00716.39
7.3.210.0100.01016.32
7.3.200.0080.00819.39
7.3.190.0070.01416.11
7.3.180.0070.01016.04
7.3.170.0060.00916.27
7.3.160.0120.00916.02
7.3.120.0070.00914.75
7.3.110.0030.01514.80
7.3.100.0080.00814.39
7.3.90.0060.00614.72
7.3.80.0030.01014.62
7.3.70.0040.00814.44
7.3.60.0080.00514.45
7.3.50.0060.00914.51
7.3.40.0030.00714.76
7.3.30.0040.01114.64
7.3.20.0060.00316.39
7.3.10.0000.01416.54
7.3.00.0070.00716.55
7.2.330.0100.00716.49
7.2.320.0070.01016.54
7.2.310.0120.00916.42
7.2.300.0190.00316.15
7.2.290.0060.01316.27
7.2.250.0040.01414.99
7.2.240.0070.01014.47
7.2.230.0100.00014.78
7.2.220.0070.00714.72
7.2.210.0080.00815.04
7.2.200.0030.01014.50
7.2.190.0000.01414.86
7.2.180.0030.01014.83
7.2.170.0130.00014.71
7.1.330.0100.00615.83
7.1.320.0070.00715.48
7.1.310.0060.00615.47
7.1.300.0030.01015.72
7.1.290.0080.00315.83
7.1.280.0090.00615.73
7.1.270.0070.00315.50
7.1.260.0070.00415.45
7.1.70.0040.00417.09
7.1.60.0060.00616.86
7.1.50.0000.02216.50
7.1.00.0100.07022.44
7.0.200.0030.00916.69
7.0.140.0000.07722.09
7.0.60.0030.04020.01
7.0.50.0070.08017.94
7.0.40.0070.06320.27
7.0.30.0230.06320.34
7.0.20.0330.07020.12
7.0.10.0370.07320.12
7.0.00.0200.07720.24
5.6.280.0030.07321.08
5.6.210.0030.06320.70
5.6.200.0030.04318.19
5.6.190.0070.04320.50
5.6.180.0300.08720.31
5.6.170.0530.06020.47
5.6.160.0030.04720.70
5.6.150.0130.07718.28
5.6.140.0100.07718.14
5.6.130.0030.04718.21
5.6.120.0070.03720.98
5.6.110.0130.06320.98
5.6.100.0100.08321.13
5.6.90.0030.06021.00
5.6.80.0130.06320.34
5.6.70.0300.05320.41
5.5.350.0230.04020.38
5.5.340.0070.04317.98
5.5.330.0030.04720.29
5.5.320.0270.05320.27
5.5.310.0400.05720.24
5.5.300.0100.07317.98
5.5.290.0100.06317.96
5.5.280.0030.04020.86
5.5.270.0030.04720.83
5.5.260.0070.03720.86
5.5.250.0030.08320.71
5.5.240.0000.08320.23
5.4.450.0270.06719.45
5.4.440.0770.07019.71
5.4.430.0100.05319.42
5.4.420.0570.07019.57
5.4.410.0070.05718.99
5.4.400.0070.05718.53
5.4.390.0070.05318.86
5.4.380.0270.05718.71
5.4.370.0900.04718.70
5.4.360.0800.05718.61
5.4.350.0970.06318.61
5.4.340.0700.06718.61
5.4.320.0080.03512.48
5.4.310.0030.04012.47
5.4.300.0040.03912.48
5.4.290.0080.03712.47
5.4.280.0070.04312.34
5.4.270.0100.05112.34
5.4.260.0130.04212.34
5.4.250.0090.05812.34
5.4.240.0070.04312.34
5.4.230.0140.04812.34
5.4.220.0110.07112.33
5.4.210.0090.06612.34
5.4.200.0090.05712.33
5.4.190.0090.05212.33
5.4.180.0070.04312.33
5.4.170.0050.05612.34
5.4.160.0030.05512.34
5.4.150.0080.05012.34
5.4.140.0100.06312.02
5.4.130.0080.05912.01
5.4.120.0050.05511.96
5.4.110.0210.07611.96
5.4.100.0090.05611.96
5.4.90.0130.06811.96
5.4.80.0060.05511.96
5.4.70.0120.04811.95
5.4.60.0090.05011.96
5.4.50.0070.05511.96
5.4.40.0070.05411.94
5.4.30.0070.05411.95
5.4.20.0080.05111.95
5.4.10.0060.05211.95
5.4.00.0060.04511.44
5.3.290.0060.04612.80
5.3.280.0090.05112.71
5.3.270.0080.05712.73
5.3.260.0100.05412.72
5.3.250.0070.05612.72
5.3.240.0100.05412.72
5.3.230.0080.05212.71
5.3.220.0150.07212.68
5.3.210.0090.05712.68
5.3.200.0120.03612.68
5.3.190.0150.05312.68
5.3.180.0110.05812.68
5.3.170.0080.05712.67
5.3.160.0090.05212.67
5.3.150.0110.08312.67
5.3.140.0120.06212.66
5.3.130.0140.07212.66
5.3.120.0100.04312.66
5.3.110.0090.03912.66
5.3.100.0050.04312.12
5.3.90.0050.04112.08
5.3.80.0050.03912.08
5.3.70.0050.04012.08
5.3.60.0080.03812.07
5.3.50.0090.05512.00
5.3.40.0120.05612.00
5.3.30.0120.05611.95
5.3.20.0120.05311.72
5.3.10.0140.05611.69
5.3.00.0120.05011.68
5.2.170.0090.0509.17
5.2.160.0070.0659.17
5.2.150.0080.0479.18
5.2.140.0100.0399.17
5.2.130.0060.0429.13
5.2.120.0050.0459.13
5.2.110.0080.0419.14
5.2.100.0100.0409.14
5.2.90.0080.0489.14
5.2.80.0050.0539.14
5.2.70.0060.0309.13
5.2.60.0040.0339.08
5.2.50.0130.0439.05
5.2.40.0040.0349.03
5.2.30.0050.0389.01
5.2.20.0110.0269.00
5.2.10.0040.0348.91
5.2.00.0080.0298.77
5.1.60.0070.0248.04
5.1.50.0050.0338.04
5.1.40.0100.0248.03
5.1.30.0050.0308.38
5.1.20.0060.0378.39
5.1.10.0110.0318.12
5.1.00.0070.0348.11
5.0.50.0150.0356.60
5.0.40.0170.0516.46
5.0.30.0230.1086.27
5.0.20.0080.0346.24
5.0.10.0070.0366.22
5.0.00.0030.0486.21
4.4.90.0040.0254.78
4.4.80.0080.0264.76
4.4.70.0040.0234.75
4.4.60.0030.0314.76
4.4.50.0040.0334.77
4.4.40.0050.0274.71
4.4.30.0120.0264.75
4.4.20.0030.0244.84
4.4.10.0060.0224.85
4.4.00.0040.0304.76
4.3.110.0040.0214.67
4.3.100.0050.0244.67
4.3.90.0080.0244.63
4.3.80.0090.0404.58
4.3.70.0040.0344.63
4.3.60.0050.0194.63
4.3.50.0070.0404.62
4.3.40.0180.0994.54
4.3.30.0040.0243.27
4.3.20.0070.0143.25
4.3.10.0020.0183.22
4.3.00.0300.01015.57

preferences:
44.49 ms | 400 KiB | 5 Q