3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = ['a' => 1, 'b' => 2]; $arr2 = ['c' => 3, 'd' => 4]; array_push($arr1, ...$arr2); var_export($arr1);

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.0210.00016.88
8.3.50.0140.00716.55
8.3.40.0140.00721.92
8.3.30.0040.01118.56
8.3.20.0000.00724.18
8.3.10.0060.00324.66
8.3.00.0040.00426.16
8.2.180.0120.00916.50
8.2.170.0150.00018.99
8.2.160.0070.00722.96
8.2.150.0000.00925.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0000.00721.18
8.2.110.0090.00019.39
8.2.100.0030.00919.57
8.2.90.0060.00317.63
8.2.80.0030.00618.78
8.2.70.0050.00317.50
8.2.60.0040.00417.63
8.2.50.0080.00017.55
8.2.40.0080.00017.75
8.2.30.0130.00317.72
8.2.20.0100.00717.72
8.2.10.0120.00417.75
8.2.00.0150.00017.72
8.1.280.0040.01125.92
8.1.270.0040.00424.66
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00319.31
8.1.230.0040.00820.97
8.1.220.0000.00818.44
8.1.210.0080.00018.77
8.1.200.0050.00517.25
8.1.190.0030.00517.35
8.1.180.0040.00418.10
8.1.170.0100.00717.72
8.1.160.0130.00317.72
8.1.150.0110.00617.72
8.1.140.0080.00817.72
8.1.130.0130.00517.72
8.1.120.0120.00917.72
8.1.110.0120.00617.72
8.1.100.0120.00617.72
8.1.90.0160.00017.72
8.1.80.0130.00417.72
8.1.70.0110.00517.72
8.1.60.0180.00017.72
8.1.50.0130.00517.72
8.1.40.0150.00417.72
8.1.30.0110.00717.72
8.1.20.0140.00317.72
8.1.10.0150.00417.72
8.1.00.0180.00017.72
8.0.300.0000.00718.77
8.0.290.0100.00016.63
8.0.280.0110.00517.72
8.0.270.0140.00317.72
8.0.260.0140.00217.72
8.0.250.0080.00817.72
8.0.240.0120.00517.72
8.0.230.0100.01017.72
8.0.220.0080.00817.72
8.0.210.0120.00417.72
8.0.200.0170.00017.72
8.0.190.0160.00017.72
8.0.180.0080.00817.72
8.0.170.0130.00317.72
8.0.160.0120.00417.72
8.0.150.0080.00817.72
8.0.140.0180.00017.72
8.0.130.0100.00717.72
8.0.120.0150.00417.72
8.0.110.0120.00317.72
8.0.100.0110.00517.72
8.0.90.0120.00517.72
8.0.80.0140.00217.72
8.0.70.0170.00017.72
8.0.60.0140.00517.72
8.0.50.0120.00417.72
8.0.30.0070.01117.72
8.0.20.0160.00017.72
8.0.10.0120.00417.72

preferences:
28.23 ms | 400 KiB | 5 Q