3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=[1,2]; $b=[2,...$a, 1=>3]; var_dump($b);

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.0170.00320.79
8.4.10.0000.01019.76
8.3.150.0040.00417.17
8.3.140.0040.00420.91
8.3.130.0090.00918.15
8.3.120.0070.01120.59
8.3.110.0060.00320.94
8.3.100.0060.00318.22
8.3.90.0050.00326.77
8.3.80.0060.00616.38
8.3.70.0070.00716.58
8.3.60.0140.00318.43
8.3.50.0100.00717.28
8.3.40.0090.00618.84
8.3.30.0070.00718.61
8.3.20.0040.00421.90
8.3.10.0040.00421.86
8.3.00.0100.00023.48
8.2.270.0130.00616.71
8.2.260.0070.00719.11
8.2.250.0000.00818.39
8.2.240.0080.00016.72
8.2.230.0040.00422.58
8.2.220.0120.00424.06
8.2.210.0040.00426.77
8.2.200.0060.00318.16
8.2.190.0180.00018.41
8.2.180.0120.00325.92
8.2.170.0090.00922.96
8.2.160.0090.00620.39
8.2.150.0090.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0090.00021.18
8.2.100.0080.00417.72
8.2.90.0050.00318.22
8.2.80.0060.00318.22
8.2.70.0040.00417.63
8.2.60.0000.00817.75
8.2.50.0000.00918.10
8.2.40.0070.00019.53
8.2.30.0000.00819.39
8.2.20.0000.00818.04
8.2.10.0040.00418.84
8.2.00.0070.00019.23
8.1.310.0180.00016.90
8.1.300.0000.01017.78
8.1.290.0000.00930.84
8.1.280.0070.01025.92
8.1.270.0060.00322.34
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0050.00522.13
8.1.230.0090.00320.88
8.1.220.0030.00717.74
8.1.210.0050.00318.77
8.1.200.0050.00317.23
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0030.00718.52
8.1.160.0000.00718.86
8.1.150.0030.00518.85
8.1.140.0000.00818.85
8.1.130.0040.00417.50
8.1.120.0000.00717.37
8.1.110.0000.00717.40
8.1.100.0040.00417.45
8.1.90.0000.00817.47
8.1.80.0000.00717.41
8.1.70.0030.00517.43
8.1.60.0030.00617.63
8.1.50.0000.01117.42
8.1.40.0050.00317.39
8.1.30.0000.00817.64
8.1.20.0000.00817.68
8.1.10.0040.00417.61
8.1.00.0040.00417.48
8.0.300.0000.00720.03
8.0.290.0000.00816.75
8.0.280.0030.00318.45
8.0.270.0040.00417.26
8.0.260.0050.00316.82
8.0.250.0000.00717.00
8.0.240.0030.00316.82
8.0.230.0070.00016.99
8.0.220.0000.00716.88
8.0.210.0000.00716.88
8.0.200.0000.00616.92
8.0.190.0000.00716.83
8.0.180.0050.00216.88
8.0.170.0000.01116.93
8.0.160.0000.00816.83
8.0.150.0040.00416.94
8.0.140.0050.00216.77
8.0.130.0060.00013.34
8.0.120.0060.00316.83
8.0.110.0030.00616.94
8.0.100.0000.00816.76
8.0.90.0000.00716.96
8.0.80.0130.00716.89
8.0.70.0000.00716.90
8.0.60.0020.00516.71
8.0.50.0000.00716.88
8.0.30.0070.01316.85
8.0.20.0190.00016.90
8.0.10.0040.00416.81
8.0.00.0100.01016.62
7.4.330.0000.00515.55
7.4.320.0000.00816.60
7.4.300.0000.00716.59
7.4.290.0000.00816.50
7.4.280.0050.00216.59
7.4.270.0070.00016.56
7.4.260.0050.00216.51
7.4.250.0030.00316.48
7.4.240.0040.00416.56
7.4.230.0000.00716.62
7.4.220.0030.00316.39
7.4.210.0070.00716.55
7.4.200.0020.00516.42
7.4.160.0100.00816.54
7.4.130.0070.01016.56
7.4.120.0100.01416.32
7.4.110.0090.00916.47
7.4.100.0100.00616.47
7.4.90.0000.01716.51
7.4.80.0030.01419.39
7.4.70.0100.00616.48
7.4.60.0070.01016.56
7.4.50.0090.00616.56
7.4.40.0110.01116.53
7.4.10.0080.00915.75
7.4.00.0080.01115.76
7.3.330.0000.00512.98
7.3.320.0000.00612.98
7.3.310.0030.00315.99
7.3.300.0030.00316.15
7.3.290.0040.00416.14
7.3.280.0080.01116.16
7.3.260.0140.00716.21
7.3.230.0170.00016.28
7.3.210.0100.00716.32
7.3.200.0160.00316.35
7.3.190.0080.00816.10
7.3.180.0120.00416.48
7.3.170.0120.00616.19
7.3.160.0070.01416.35
7.3.130.0050.01315.54
7.3.120.0080.01015.47
7.3.110.0080.00815.13
7.3.100.0080.00715.18
7.3.90.0090.00715.02
7.3.80.0090.00615.14
7.3.70.0120.00515.12
7.3.60.0030.01014.90
7.3.50.0070.00815.00
7.3.40.0110.00815.01
7.3.30.0070.00814.99
7.3.20.0090.00815.86
7.3.10.0080.01015.84
7.3.00.0080.00815.97
7.2.330.0090.00916.39
7.2.320.0130.00616.46
7.2.310.0060.00916.07
7.2.300.0100.01016.54
7.2.290.0100.01016.54
7.2.260.0050.00915.45
7.2.250.0060.01215.41
7.2.240.0090.00715.30
7.2.230.0090.00715.29
7.2.220.0050.01115.09
7.2.210.0060.01015.35
7.2.200.0040.01115.19
7.2.190.0050.00915.02
7.2.180.0070.00815.16
7.2.170.0100.00815.21
7.2.160.0070.00815.17
7.2.150.0070.01016.10
7.2.140.0120.00516.13
7.2.130.0130.00715.99
7.2.120.0050.01216.05
7.2.110.0060.01016.09
7.2.100.0090.00716.05
7.2.90.0120.00516.19
7.2.80.0080.00916.14
7.2.70.0090.00916.05
7.2.60.0060.01116.16
7.2.50.0070.01016.15
7.2.40.0110.00716.16
7.2.30.0080.01016.10
7.2.20.0090.00816.13
7.2.10.0070.00916.13
7.2.00.0100.00816.10
7.1.330.0130.00514.85
7.1.320.0100.01014.83
7.1.310.0100.00714.82
7.1.300.0080.00714.98
7.1.290.0080.01014.96
7.1.280.0130.00514.96
7.1.270.0120.00615.04
7.1.260.0070.00814.93
7.1.250.0100.00814.90
7.1.240.0090.00815.32
7.1.230.0120.00715.45
7.1.220.0260.00515.38
7.1.210.0130.00815.52
7.1.200.0140.00815.42
7.1.190.0070.01515.43
7.1.180.0090.00915.31
7.1.170.0090.01315.36
7.1.160.0080.01115.40
7.1.150.0080.01115.15
7.1.140.0070.01015.43
7.1.130.0120.00915.53
7.1.120.0120.00815.37
7.1.110.0110.00815.56
7.1.100.0150.00515.09
7.1.90.0110.01015.20
7.1.80.0130.00915.46
7.1.70.0090.00915.26
7.1.60.0070.01015.37
7.1.50.0120.00915.42
7.1.40.0160.00415.57
7.1.30.0100.00715.26
7.1.20.0120.00915.41
7.1.10.0110.00515.35
7.1.00.0170.00915.48

preferences:
74.54 ms | 403 KiB | 5 Q