3v4l.org

run code in 300+ PHP versions simultaneously
<?php $one=['A','B','C']; $two=['D','E']; var_dump($one+$two); echo '---------------------'; var_dump($two+$one); echo '---------------------'; var_dump(array_merge($one,$two)); echo '---------------------'; var_dump(array_merge($two,$one));

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.30.0090.00618.65
8.3.20.0000.00824.18
8.3.10.0080.00024.66
8.3.00.0000.00926.16
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0060.00326.35
8.2.110.0090.00021.12
8.2.100.0110.00017.72
8.2.90.0040.00417.97
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0090.00317.79
8.2.50.0000.00918.07
8.2.40.0030.00518.29
8.2.30.0000.00817.86
8.2.20.0000.00717.92
8.2.10.0000.00719.17
8.2.00.0000.00819.21
8.1.270.0070.01323.70
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0060.00322.21
8.1.230.0040.00822.27
8.1.220.0040.00417.74
8.1.210.0060.00618.77
8.1.200.0030.00617.12
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0040.00418.66
8.1.160.0000.00718.86
8.1.150.0040.00418.72
8.1.140.0050.00218.81
8.1.130.0070.00020.16
8.1.120.0000.00817.31
8.1.110.0030.00617.36
8.1.100.0040.00417.38
8.1.90.0030.00517.28
8.1.80.0030.00617.43
8.1.70.0030.00317.40
8.1.60.0000.00817.51
8.1.50.0030.00617.42
8.1.40.0000.00817.41
8.1.30.0000.00717.56
8.1.20.0040.00417.50
8.1.10.0080.00017.36
8.1.00.0030.00517.50
8.0.300.0040.00419.86
8.0.290.0040.00416.75
8.0.280.0070.00018.45
8.0.270.0070.00016.82
8.0.260.0030.00320.18
8.0.250.0030.00316.92
8.0.240.0000.00816.80
8.0.230.0000.00816.92
8.0.220.0040.00416.76
8.0.210.0070.00016.94
8.0.200.0070.00016.96
8.0.190.0080.00016.97
8.0.180.0000.00716.90
8.0.170.0030.00516.88
8.0.160.0020.00516.84
8.0.150.0040.00416.83
8.0.140.0040.00416.66
8.0.130.0000.00513.30
8.0.120.0030.00616.73
8.0.110.0000.00716.74
8.0.100.0000.00716.77
8.0.90.0000.00816.76
8.0.80.0100.00616.87
8.0.70.0000.00816.67
8.0.60.0060.00316.77
8.0.50.0050.00316.68
8.0.30.0090.01216.83
8.0.20.0100.00916.99
8.0.10.0000.00716.85
8.0.00.0150.00416.99
7.4.330.0020.00216.70
7.4.320.0030.00316.45
7.4.300.0000.00616.38
7.4.290.0000.00716.38
7.4.280.0080.00016.46
7.4.270.0030.00316.51
7.4.260.0000.00513.22
7.4.250.0060.00316.25
7.4.240.0070.00016.53
7.4.230.0030.00316.61
7.4.220.0030.00316.55
7.4.210.0120.00516.52
7.4.200.0000.00716.60
7.4.130.0120.00616.50
7.4.120.0090.00916.39
7.4.110.0130.00316.48
7.4.100.0070.01116.29
7.4.90.0160.00316.57
7.4.80.0040.01316.35
7.4.70.0070.01016.60
7.4.60.0120.00616.21
7.4.50.0110.00716.51
7.4.40.0180.00016.17
7.4.30.0160.00416.43
7.4.20.0070.01116.25
7.4.10.0060.01216.59
7.4.00.0180.00316.67
7.3.330.0030.00316.28
7.3.320.0040.00413.03
7.3.310.0030.00316.25
7.3.300.0060.00016.02
7.3.290.0010.01216.24
7.3.260.0130.00516.09
7.3.230.0100.00716.30
7.3.220.0130.00416.29
7.3.210.0030.01316.34
7.3.200.0050.01116.19
7.3.190.0070.01016.52
7.3.180.0030.01316.19
7.3.170.0100.00716.45
7.3.160.0090.00916.08
7.3.150.0170.00016.21
7.3.140.0150.00316.07
7.3.130.0030.01316.32
7.3.120.0180.00416.36
7.3.110.0030.01316.52
7.3.100.0030.01316.14
7.3.90.0100.00716.31
7.3.80.0190.00316.13
7.3.70.0070.01016.36
7.3.60.0080.00816.19
7.3.50.0070.01416.13
7.3.40.0110.01116.32
7.3.30.0120.00616.36
7.3.20.0090.00916.47
7.3.10.0120.00616.21
7.3.00.0130.01316.30
7.2.340.0140.00316.25
7.2.330.0090.00916.40
7.2.320.0070.01016.61
7.2.310.0070.01016.56
7.2.300.0130.00516.63
7.2.290.0120.00916.63
7.2.280.0060.01216.48
7.2.270.0130.00316.57
7.2.260.0100.00716.17
7.2.250.0140.00316.40
7.2.240.0140.00316.55
7.2.230.0110.00916.65
7.2.220.0120.00616.36
7.2.210.0070.01116.52
7.2.200.0130.01016.20
7.2.190.0120.00616.57
7.2.180.0100.01416.27
7.2.170.0140.01016.48
7.2.160.0110.01416.55
7.2.150.0150.00416.58
7.2.140.0150.00316.48
7.2.130.0140.01016.49
7.2.120.0110.00716.52
7.2.110.0060.01216.53
7.2.100.0070.01016.39
7.2.90.0040.01216.35
7.2.80.0080.01116.63
7.2.70.0060.01216.38
7.2.60.0030.01516.47
7.2.50.0160.00316.51
7.2.40.0090.00916.59
7.2.30.0150.00316.42
7.2.20.0000.01816.53
7.2.10.0060.01416.52
7.2.00.0110.00716.50

preferences:
33.8 ms | 401 KiB | 5 Q