3v4l.org

run code in 300+ PHP versions simultaneously
<?php $option1 = ['filter' => ['foo', 'bar']]; $option2 = ['filter' => ['baz']]; var_dump(array_merge($option1, $option2));

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.140.0130.00917.24
8.4.130.0110.00917.37
8.4.120.0140.00624.12
8.4.110.0100.00919.76
8.4.100.0090.01018.60
8.4.90.0060.00318.48
8.4.80.0130.00718.49
8.4.70.0050.00417.78
8.4.60.0130.00718.93
8.4.50.0120.01018.62
8.4.40.0070.01517.46
8.4.30.0060.01018.66
8.4.20.0110.00817.76
8.4.10.0060.00319.46
8.3.270.0140.00516.61
8.3.260.0060.00716.54
8.3.250.0110.00818.80
8.3.240.0040.00416.68
8.3.230.0130.00716.70
8.3.220.0080.00618.99
8.3.210.0090.00916.55
8.3.200.0060.00216.52
8.3.190.0090.00916.54
8.3.180.0100.00818.19
8.3.170.0120.00620.62
8.3.160.0060.01218.26
8.3.150.0120.00620.70
8.3.140.0050.00316.49
8.3.130.0000.00918.44
8.3.120.0150.00320.85
8.3.110.0030.00620.94
8.3.100.0030.00716.54
8.3.90.0150.00426.77
8.3.80.0090.00018.43
8.3.70.0060.00918.31
8.3.60.0070.00718.43
8.3.50.0100.01016.42
8.3.40.0130.00323.73
8.3.30.0140.00018.83
8.3.20.0040.00424.18
8.3.10.0070.00024.66
8.3.00.0050.00326.16
8.2.290.0100.00920.23
8.2.280.0100.00816.73
8.2.270.0120.00617.09
8.2.260.0150.00418.79
8.2.250.0080.00018.52
8.2.240.0030.00617.16
8.2.230.0030.00522.58
8.2.220.0030.00724.06
8.2.210.0000.00826.77
8.2.200.0060.00318.41
8.2.190.0070.00716.58
8.2.180.0090.00916.38
8.2.170.0040.01122.96
8.2.160.0100.00322.96
8.2.150.0050.00225.66
8.2.140.0070.00024.66
8.2.130.0000.00726.16
8.2.120.0040.00419.23
8.2.110.0030.00721.00
8.2.100.0340.00918.44
8.2.90.0310.00718.44
8.2.80.0300.00718.44
8.2.70.0300.00718.44
8.2.60.0320.00618.44
8.2.50.0360.00318.44
8.2.40.0210.00718.44
8.2.30.0280.00418.44
8.2.20.0250.00518.44
8.2.10.0230.00718.44
8.2.00.0250.00318.44
8.1.330.0100.00821.98
8.1.320.0090.01216.16
8.1.310.0130.00316.18
8.1.300.0050.00315.96
8.1.290.0000.00930.84
8.1.280.0080.00825.92
8.1.270.0000.00824.66
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0050.00523.97
8.1.230.0220.00818.44
8.1.220.0210.00618.44
8.1.210.0260.00518.44
8.1.200.0220.00818.44
8.1.190.0300.00318.44
8.1.180.0170.01318.44
8.1.170.0290.00018.44
8.1.160.0220.00918.44
8.1.150.0250.00718.44
8.1.140.0250.00518.44
8.1.130.0170.01118.44
8.1.120.0230.00918.44
8.1.110.0180.00918.44
8.1.100.0220.00418.44
8.1.90.0230.00318.44
8.1.80.0230.00718.44
8.1.70.0300.00718.44
8.1.60.0220.00418.44
8.1.50.0160.00718.44
8.1.40.0220.00318.44
8.1.30.0190.00818.44
8.1.20.0240.00318.44
8.1.10.0180.00918.44
8.1.00.0150.00918.44
8.0.300.0190.00318.44
8.0.290.0240.00318.44
8.0.280.0220.00718.44
8.0.270.0210.00518.44
8.0.260.0220.00618.44
8.0.250.0260.00518.44
8.0.240.0210.00818.44
8.0.230.0230.00518.44
8.0.220.0280.00018.44
8.0.210.0260.00318.44
8.0.200.0250.00318.44
8.0.190.0220.00418.44
8.0.180.0240.00218.44
8.0.170.0190.00818.44
8.0.160.0270.00018.44
8.0.150.0170.00618.44
8.0.140.0210.00618.44
8.0.130.0180.00418.44
8.0.120.0240.00318.44
8.0.110.0230.00718.44
8.0.100.0230.00518.44
8.0.90.0230.00518.44
8.0.80.0170.00718.44
8.0.70.0200.00818.44
8.0.60.0290.00018.44
8.0.50.0270.00018.44
8.0.30.0270.00618.44
8.0.20.0240.00518.44
8.0.10.0220.00318.44

preferences:
108.41 ms | 403 KiB | 5 Q