3v4l.org

run code in 300+ PHP versions simultaneously
<?php print json_encode([ [...['a', 'b'], ...['c', 'd']], // [a, b, c, d] array_merge(['a', 'b'], ['c', 'd']), // [a, b, c, d] ['a', 'b'] + ['c', 'd'], // [a, b] array_replace(['a', 'b'], ['c', 'd']), // [c, d] ]);

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.70.0120.00316.50
8.3.60.0220.00016.63
8.3.50.0140.00716.42
8.3.40.0140.00720.00
8.3.30.0070.00718.76
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.190.0100.01016.58
8.2.180.0090.00918.29
8.2.170.0110.00718.95
8.2.160.0030.01022.96
8.2.150.0080.00025.66
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0040.00419.77
8.2.110.0000.01119.28
8.2.100.0090.00317.91
8.2.90.0090.00017.66
8.2.80.0000.00919.15
8.2.70.0080.00017.63
8.2.60.0000.00817.63
8.2.50.0000.00917.50
8.2.40.0090.01017.72
8.2.30.0130.00417.72
8.2.20.0060.00817.72
8.2.10.0090.00917.72
8.2.00.0110.00517.72
8.1.280.0110.00425.92
8.1.270.0060.01120.77
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0030.00622.06
8.1.230.0040.00720.96
8.1.220.0080.00017.74
8.1.210.0060.00318.91
8.1.200.0000.00817.35
8.1.190.0070.00317.11
8.1.180.0050.00318.10
8.1.170.0140.00317.72
8.1.160.0100.00717.72
8.1.150.0140.00317.72
8.1.140.0080.00917.72
8.1.130.0130.00617.72
8.1.120.0150.00217.72
8.1.110.0060.01217.72
8.1.100.0100.00817.72
8.1.90.0090.00717.72
8.1.80.0110.00617.72
8.1.70.0100.00717.72
8.1.60.0150.00317.72
8.1.50.0140.00717.72
8.1.40.0140.00417.72
8.1.30.0070.01217.72
8.1.20.0140.00417.72
8.1.10.0090.01017.72
8.1.00.0120.00617.72
8.0.300.0030.00620.15
8.0.290.0080.00016.75
8.0.280.0110.00617.72
8.0.270.0120.00617.72
8.0.260.0150.00217.72
8.0.250.0130.00417.72
8.0.240.0110.00617.72
8.0.230.0140.00417.72
8.0.220.0140.00517.72
8.0.210.0130.00417.72
8.0.200.0150.00217.72
8.0.190.0120.00617.72
8.0.180.0120.00517.72
8.0.170.0080.01017.72
8.0.160.0130.00417.72
8.0.150.0150.00117.72
8.0.140.0110.00517.72
8.0.130.0120.00517.72
8.0.120.0120.00517.72
8.0.110.0100.00517.72
8.0.100.0090.00717.72
8.0.90.0090.00817.72
8.0.80.0140.00317.72
8.0.70.0150.00217.72
8.0.60.0160.00117.72
8.0.50.0130.00417.72
8.0.30.0110.00717.72
8.0.20.0160.00017.72
8.0.10.0130.00517.72

preferences:
17.84 ms | 401 KiB | 5 Q