3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [1,2,3]; $values = []; array_push($array, ...$values); print_r($array);

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.4.20.0100.01019.46
8.4.10.0000.00919.57
8.3.150.0090.00916.50
8.3.140.0140.00317.05
8.3.130.0060.00318.25
8.3.120.0100.00620.79
8.3.110.0140.00716.57
8.3.100.0050.00316.63
8.3.90.0130.00616.57
8.3.80.0040.00416.63
8.3.70.0040.01116.58
8.3.60.0160.00618.17
8.3.50.0120.00317.11
8.3.40.0070.01018.70
8.3.30.0120.00318.43
8.3.20.0040.00421.60
8.3.10.0080.00023.52
8.3.00.0040.00421.81
8.2.270.0110.00716.19
8.2.260.0030.00616.66
8.2.250.0120.00318.25
8.2.240.0030.00617.30
8.2.230.0060.01020.94
8.2.220.0040.00437.54
8.2.210.0050.00326.77
8.2.200.0070.00316.63
8.2.190.0120.00916.58
8.2.180.0040.01125.92
8.2.170.0120.00318.85
8.2.160.0060.00922.96
8.2.150.0020.00525.66
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0040.00420.90
8.2.110.0030.00720.47
8.2.100.0040.00817.78
8.2.90.0040.00417.91
8.2.80.0050.00319.46
8.2.70.0030.00517.50
8.2.60.0030.00617.38
8.2.50.0040.00417.50
8.2.40.0040.00419.77
8.2.30.0000.00819.16
8.2.20.0070.00018.00
8.2.10.0050.00318.06
8.2.00.0000.00718.19
8.1.310.0040.01420.31
8.1.300.0120.00319.71
8.1.290.0070.00730.84
8.1.280.0150.00325.92
8.1.270.0070.00022.07
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0030.00622.01
8.1.230.0080.00322.15
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0050.00319.00
8.1.160.0040.00418.91
8.1.150.0080.00018.87
8.1.140.0040.00419.03
8.1.130.0000.00817.50
8.1.120.0000.00717.29
8.1.110.0040.00417.33
8.1.100.0040.00417.27
8.1.90.0040.00417.39
8.1.80.0040.00417.37
8.1.70.0000.00717.30
8.1.60.0070.00317.48
8.1.50.0080.00317.51
8.1.40.0070.00017.45
8.1.30.0030.00817.50
8.1.20.0030.00617.47
8.1.10.0040.00417.36
8.1.00.0030.00617.36
8.0.300.0040.00419.95
8.0.290.0000.00816.63
8.0.280.0040.00418.37
8.0.270.0030.00517.24
8.0.260.0000.00617.12
8.0.250.0040.00416.88
8.0.240.0060.00016.89
8.0.230.0000.00716.76
8.0.220.0000.00716.71
8.0.210.0070.00016.71
8.0.200.0080.00016.85
8.0.190.0100.00016.89
8.0.180.0070.00016.86
8.0.170.0030.00616.72
8.0.160.0080.00016.83
8.0.150.0080.00016.80
8.0.140.0030.00316.66
8.0.130.0000.00513.20
8.0.120.0000.00716.68
8.0.110.0020.00516.82
8.0.100.0080.00016.73
8.0.90.0050.00216.83
8.0.80.0120.00316.81
8.0.70.0070.00016.83
8.0.60.0000.00716.85
8.0.50.0080.00016.77
8.0.30.0090.01016.77
8.0.20.0110.00817.40
8.0.10.0070.00016.79
8.0.00.0190.00316.76
7.4.330.0050.00015.55
7.4.320.0030.00316.47
7.4.300.0060.00016.42
7.4.290.0030.00316.43
7.4.280.0070.00016.51
7.4.270.0030.00316.44
7.4.260.0040.00416.44
7.4.250.0050.00216.41
7.4.240.0020.00516.52
7.4.230.0000.00716.24
7.4.220.0000.00716.50
7.4.210.0110.00416.41
7.4.200.0030.00316.36
7.4.160.0060.00916.35
7.4.150.0110.00717.40
7.4.140.0110.01017.86
7.4.130.0060.01116.36
7.4.120.0130.01116.36
7.4.110.0070.01316.36
7.4.100.0070.01716.46
7.4.90.0090.00916.63
7.4.80.0090.00619.39
7.4.70.0120.00416.31
7.4.60.0150.00616.49
7.4.50.0060.00916.29
7.4.40.0080.00816.47
7.4.00.0050.01114.77
7.3.330.0020.00213.07
7.3.320.0050.00012.87
7.3.310.0000.00716.28
7.3.300.0000.00616.10
7.3.290.0090.00716.09
7.3.280.0100.00816.13
7.3.270.0070.01117.40
7.3.260.0110.00716.25
7.3.250.0120.00616.29
7.3.240.0100.01016.14
7.3.230.0100.01016.30
7.3.210.0100.00616.40
7.3.200.0160.00316.23
7.3.190.0040.01216.09
7.3.180.0030.01816.50
7.3.170.0060.01216.21
7.3.160.0100.01016.08
7.3.120.0050.01214.55
7.3.110.0040.01414.41
7.3.100.0070.00914.64
7.3.90.0110.00514.64
7.3.80.0060.00814.75
7.3.70.0060.00614.45
7.3.60.0070.00714.57
7.3.50.0060.00914.75
7.3.40.0070.00514.67
7.3.30.0060.00514.61
7.3.20.0080.00816.61
7.3.10.0050.00816.40
7.3.00.0060.00516.46
7.2.330.0070.01016.23
7.2.320.0120.00616.32
7.2.310.0030.01416.24
7.2.300.0080.00916.38
7.2.290.0050.01116.60
7.2.250.0090.00914.81
7.2.240.0110.00814.95
7.2.230.0100.00714.84
7.2.220.0020.00914.98
7.2.210.0050.00914.89
7.2.200.0000.01414.72
7.2.190.0070.00714.82
7.2.180.0080.00614.79
7.2.170.0070.00714.71
7.2.60.0090.00316.51
7.2.20.0080.01217.53
7.2.10.0150.01417.79
7.2.00.0420.01317.48
7.1.330.0040.00915.69
7.1.320.0010.00915.68
7.1.310.0030.01015.73
7.1.300.0050.01215.51
7.1.290.0020.00815.63
7.1.280.0020.01115.82
7.1.270.0050.00815.54
7.1.260.0030.01015.65
7.1.200.0070.00415.75
7.1.140.0450.00616.74
7.1.130.0040.01116.81
7.1.120.0190.00816.73
7.1.110.0310.00816.12
7.1.100.0160.00816.08
7.1.90.0450.01215.87
7.1.80.0270.00816.06
7.1.70.0510.00715.12
7.1.60.0400.01033.17
7.1.50.0370.01132.92
7.1.40.0310.01232.48
7.1.30.0360.00932.58
7.1.20.0330.01032.70
7.1.10.0170.01114.68
7.1.00.0200.01014.77
7.0.270.0760.01316.24
7.0.260.0180.00716.47
7.0.250.0170.00515.65
7.0.240.0450.00915.86
7.0.230.0420.01215.70
7.0.220.0300.01015.62
7.0.210.0300.00614.66
7.0.200.0290.01214.68
7.0.190.0240.00814.79
7.0.180.0220.00714.49
7.0.170.0250.00514.27
7.0.160.0280.00714.21
7.0.150.0170.01014.42
7.0.140.0200.01214.40
7.0.130.0210.01414.64
7.0.120.0190.00514.58
7.0.110.0520.01414.32
7.0.100.0140.01114.34
7.0.90.0220.00914.44
7.0.80.0200.00714.33
7.0.70.0130.01314.44
7.0.60.0100.01214.16
7.0.50.0220.01114.50
7.0.40.0280.00814.46
7.0.30.0250.00714.50
7.0.20.0170.01214.43
7.0.10.0320.00714.57
7.0.00.0490.00614.49
5.6.300.0110.05920.74
5.6.290.0120.06520.71
5.6.280.0070.06720.87
5.6.270.0180.05920.86
5.6.260.0200.05020.76
5.6.250.0110.05920.84
5.6.240.0050.06520.81
5.6.230.0100.05920.89
5.6.220.0130.06020.83
5.6.210.0150.06220.74
5.6.200.0180.06220.77
5.6.190.0120.06320.87
5.6.180.0100.06520.87
5.6.170.0170.04920.84
5.6.160.0140.06420.70
5.6.150.0240.05320.72
5.6.140.0090.06020.72
5.6.130.0180.05120.80
5.6.120.0080.06820.86
5.6.110.0130.07420.79
5.6.100.0050.06720.76
5.6.90.0150.05420.76
5.6.80.0100.05620.18
5.6.70.0160.05320.08
5.6.60.0130.07620.30
5.6.50.0100.05820.07
5.6.40.0090.05720.05
5.6.30.0120.05520.13
5.6.20.0130.05620.12
5.6.10.0080.06220.14
5.6.00.0170.05720.07
5.5.380.0100.06017.51
5.5.370.0090.05717.47
5.5.360.0090.05917.56
5.5.350.0160.05317.53
5.5.340.0110.05717.95
5.5.330.0170.06717.82
5.5.320.0210.05618.13
5.5.310.0210.05217.70
5.5.300.0160.04818.03
5.5.290.0250.05917.95
5.5.280.0160.06617.96
5.5.270.0030.07017.77
5.5.260.0200.05718.12
5.5.250.0170.05117.61
5.5.240.0130.04917.39
5.5.230.0100.05917.41
5.5.220.0190.04717.14
5.5.210.0160.04617.44
5.5.200.0130.05017.39
5.5.190.0140.04817.10
5.5.180.0030.06117.13
5.5.160.0100.05617.37
5.5.150.0100.07617.29
5.5.140.0140.04917.29
5.5.130.0160.06017.14
5.5.120.0230.04317.14
5.5.110.0030.05917.11
5.5.100.0090.07017.28
5.5.90.0160.05416.96
5.5.80.0100.05117.20
5.5.70.0170.05516.99
5.5.60.0130.05117.18
5.5.50.0030.06117.24
5.5.40.0130.05017.27
5.5.30.0190.04117.35
5.5.20.0140.06816.92
5.5.10.0060.05617.30
5.5.00.0130.05117.37
5.4.450.0200.05819.28
5.4.440.0070.08019.39
5.4.430.0150.05619.55
5.4.420.0140.06119.55
5.4.410.0130.05019.21
5.4.400.0180.04418.89
5.4.390.0100.05918.92
5.4.380.0090.05418.98
5.4.370.0100.05319.23
5.4.360.0130.06019.07
5.4.350.0130.04919.00
5.4.340.0160.05218.92
5.4.320.0210.05318.92
5.4.310.0220.06418.95
5.4.300.0030.08719.00
5.4.290.0000.06319.01
5.4.280.0120.06018.88
5.4.270.0100.05619.06
5.4.260.0090.06419.14
5.4.250.0120.05719.00
5.4.240.0030.05818.99
5.4.230.0100.05418.94
5.4.220.0130.05118.96
5.4.210.0130.05119.04
5.4.200.0160.06118.83
5.4.190.0100.05318.90
5.4.180.0160.06619.13
5.4.170.0030.05918.91
5.4.160.0190.04819.05
5.4.150.0070.06818.99
5.4.140.0150.05216.68
5.4.130.0230.04016.70
5.4.120.0100.06816.65
5.4.110.0120.05416.63
5.4.100.0150.05816.57
5.4.90.0130.06216.63
5.4.80.0100.06116.61
5.4.70.0150.07216.67
5.4.60.0060.06916.61
5.4.50.0140.06816.39
5.4.40.0170.07216.51
5.4.30.0100.05616.39
5.4.20.0180.06816.65
5.4.10.0100.07616.66
5.4.00.0160.04416.11
5.3.290.0160.06414.66
5.3.280.0070.05414.66
5.3.270.0100.05314.77
5.3.260.0070.05914.59
5.3.250.0070.05914.78
5.3.240.0130.05314.74
5.3.230.0130.05414.75
5.3.220.0030.06514.68
5.3.210.0100.05614.58
5.3.200.0100.05414.66
5.3.190.0070.06814.79
5.3.180.0160.05614.55
5.3.170.0030.06214.74
5.3.160.0230.05514.55
5.3.150.0180.07014.76
5.3.140.0190.07014.37
5.3.130.0250.05314.66
5.3.120.0190.06614.74
5.3.110.0000.06514.71
5.3.100.0150.04614.10
5.3.90.0100.05014.19
5.3.80.0070.05814.13
5.3.70.0060.06714.19
5.3.60.0110.06414.06
5.3.50.0130.06013.88
5.3.40.0090.05913.96
5.3.30.0030.06113.89
5.3.20.0140.06013.79
5.3.10.0180.04213.63
5.3.00.0000.05813.70
5.2.170.0160.04711.25
5.2.160.0140.04311.28
5.2.150.0130.05811.36
5.2.140.0060.04811.18
5.2.130.0040.04911.32
5.2.120.0060.03911.08
5.2.110.0070.05211.04
5.2.100.0090.03711.33
5.2.90.0030.05911.32
5.2.80.0130.03711.34
5.2.70.0200.03811.21
5.2.60.0060.05210.98
5.2.50.0070.05211.13
5.2.40.0000.04611.15
5.2.30.0070.04111.16
5.2.20.0110.04611.15
5.2.10.0150.03310.91
5.2.00.0130.03610.88
5.1.60.0100.03310.09
5.1.50.0060.03310.03
5.1.40.0120.02810.13
5.1.30.0070.03910.32
5.1.20.0000.04310.46
5.1.10.0190.03710.36
5.1.00.0030.04010.11
5.0.50.0030.0319.35
5.0.40.0090.0279.35
5.0.30.0130.0439.35
5.0.20.0090.0259.35
5.0.10.0100.0259.35
5.0.00.0030.0449.35
4.4.90.0040.0319.35
4.4.80.0030.0269.35
4.4.70.0100.0179.35
4.4.60.0060.0229.35
4.4.50.0030.0239.35
4.4.40.0030.0429.35
4.4.30.0070.0209.35
4.4.20.0060.0239.35
4.4.10.0030.0239.35
4.4.00.0120.0379.35
4.3.110.0000.0309.35
4.3.100.0040.0219.35
4.3.90.0000.0259.35
4.3.80.0030.0439.35
4.3.70.0000.0269.35
4.3.60.0030.0269.35
4.3.50.0000.0269.35
4.3.40.0000.0439.35
4.3.30.0030.0219.35
4.3.20.0030.0229.35
4.3.10.0060.0239.35
4.3.00.0060.0219.35

preferences:
30.45 ms | 403 KiB | 5 Q