3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = ["a", "b", "c", "d", "e"]; $result = [...$x, ...$x]; var_export($result);

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.5.00.0140.00719.83
8.4.150.0030.00014.05
8.4.140.0140.00817.55
8.4.130.0120.00817.55
8.4.120.0110.01020.55
8.4.110.0140.00722.66
8.4.100.0100.00817.66
8.4.90.0120.01018.53
8.4.80.0040.00618.69
8.4.70.0040.00318.94
8.4.60.0120.00719.12
8.4.50.0160.00417.80
8.4.40.0130.00617.69
8.4.30.0120.00320.46
8.4.20.0150.00719.69
8.4.10.0030.00623.82
8.3.280.0090.01018.31
8.3.270.0140.00516.61
8.3.260.0100.00816.48
8.3.250.0090.01018.69
8.3.240.0080.01116.42
8.3.230.0130.00716.52
8.3.220.0030.00419.00
8.3.210.0100.00718.25
8.3.200.0060.00216.46
8.3.190.0120.00917.38
8.3.180.0070.00616.20
8.3.170.0140.00418.97
8.3.160.0150.00316.67
8.3.150.0060.01319.04
8.3.140.0110.00716.48
8.3.130.0030.00618.46
8.3.120.0040.00420.53
8.3.110.0030.00620.94
8.3.100.0040.00424.06
8.3.90.0050.00326.77
8.3.80.0030.00618.18
8.3.70.0110.01116.63
8.3.60.0100.01018.43
8.3.50.0150.00018.14
8.3.40.0100.01020.20
8.3.30.0140.00018.67
8.3.20.0070.00024.18
8.3.10.0050.00324.66
8.3.00.0050.00326.16
8.2.290.0100.00920.43
8.2.280.0090.01018.42
8.2.270.0150.00419.22
8.2.260.0000.00818.94
8.2.250.0060.00918.49
8.2.240.0080.01117.19
8.2.230.0030.00722.58
8.2.220.0040.00837.54
8.2.210.0140.00026.77
8.2.200.0040.00416.63
8.2.190.0100.01018.41
8.2.180.0170.00325.92
8.2.170.0070.00718.81
8.2.160.0100.00322.96
8.2.150.0070.00025.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00326.16
8.2.110.0070.00419.39
8.2.100.0080.00419.64
8.2.90.0000.00819.08
8.2.80.0000.00817.97
8.2.70.0030.00517.63
8.2.60.0080.00017.91
8.2.50.0030.00518.07
8.2.40.0070.00717.88
8.2.30.0060.00318.02
8.2.20.0040.00319.11
8.2.10.0020.00518.02
8.2.00.0030.00319.30
8.1.330.0110.00922.15
8.1.320.0100.00521.70
8.1.310.0030.00616.80
8.1.300.0040.00420.16
8.1.290.0040.00430.84
8.1.280.0030.01425.92
8.1.270.0050.00324.66
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0220.00321.25
8.1.230.0110.00018.86
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00617.23
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0030.00618.26
8.1.160.0040.00418.95
8.1.150.0070.00018.61
8.1.140.0040.00417.36
8.1.130.0040.01018.54
8.1.120.0080.00818.76
8.1.110.0160.00018.71
8.1.100.0090.00618.61
8.1.90.0090.00618.58
8.1.80.0100.00518.64
8.1.70.0140.00318.55
8.1.60.0140.00318.61
8.1.50.0170.00218.69
8.1.40.0150.00318.69
8.1.30.0080.00818.78
8.1.20.0120.00618.68
8.1.10.0060.01218.61
8.1.00.0180.00018.66
8.0.300.0000.00818.77
8.0.290.0060.00316.75
8.0.280.0070.00018.34
8.0.270.0030.00316.73
8.0.260.0100.00517.99
8.0.250.0070.00718.11
8.0.240.0110.00417.95
8.0.230.0100.00417.89
8.0.220.0090.00317.92
8.0.210.0090.00417.98
8.0.200.0000.01318.02
8.0.190.0060.00617.95
8.0.180.0100.00517.91
8.0.170.0070.00317.90
8.0.160.0070.00718.01
8.0.150.0140.00218.00
8.0.140.0150.00017.94
8.0.130.0080.00818.05
8.0.120.0030.00917.90
8.0.110.0070.00417.90
8.0.100.0160.00017.94
8.0.90.0090.00517.90
8.0.80.0100.00717.99
8.0.70.0130.00017.89
8.0.60.0080.00717.76
8.0.50.0130.00017.90
8.0.30.0100.00318.04
8.0.20.0090.00518.07
8.0.10.0130.00017.98

preferences:
108.53 ms | 403 KiB | 5 Q