3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a1 = array(0=>"fqcn",); $a2 = array(0=>new stdClass(),1=>"a",2=>"b"); print_r(array_merge($a1,$a2)); print_r($a1+$a2); print_r($a2+$a1);

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.0110.00418.43
8.3.50.0040.01116.36
8.3.40.0110.01118.59
8.3.30.0040.01118.63
8.3.20.0070.00020.33
8.3.10.0080.00021.76
8.3.00.0050.00320.96
8.2.180.0060.00918.47
8.2.170.0110.00322.96
8.2.160.0110.00322.27
8.2.150.0000.00924.18
8.2.140.0050.00324.66
8.2.130.0040.00420.53
8.2.120.0040.00426.35
8.2.110.0000.00920.96
8.2.100.0070.00418.09
8.2.90.0040.00419.02
8.2.80.0000.00817.97
8.2.70.0000.00817.75
8.2.60.0000.00917.93
8.2.50.0040.00418.10
8.2.40.0060.00320.34
8.2.30.0040.00419.30
8.2.20.0000.00718.02
8.2.10.0030.00518.05
8.2.00.0040.00418.05
8.1.280.0040.01925.92
8.1.270.0040.00423.84
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00523.83
8.1.230.0090.00319.06
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0070.00417.23
8.1.190.0000.00816.98
8.1.180.0060.00318.10
8.1.170.0040.00418.47
8.1.160.0040.00418.73
8.1.150.0000.00720.12
8.1.140.0000.00719.38
8.1.130.0030.00318.78
8.1.120.0030.00317.28
8.1.110.0040.00417.37
8.1.100.0000.00717.40
8.1.90.0060.00317.39
8.1.80.0030.00517.34
8.1.70.0000.00717.46
8.1.60.0000.00817.52
8.1.50.0040.00417.33
8.1.40.0070.00317.43
8.1.30.0000.00717.54
8.1.20.0040.00417.49
8.1.10.0040.00417.54
8.1.00.0000.00717.45
8.0.300.0000.00818.77
8.0.290.0040.00416.63
8.0.280.0000.00718.30
8.0.270.0070.00017.19
8.0.260.0000.00616.88
8.0.250.0040.00416.82
8.0.240.0070.00017.01
8.0.230.0030.00516.97
8.0.220.0060.00016.86
8.0.210.0030.00316.97
8.0.200.0110.00016.82
8.0.190.0050.00316.95
8.0.180.0040.00416.93
8.0.170.0030.00316.92
8.0.160.0040.00416.89
8.0.150.0000.00716.85
8.0.140.0040.00416.82
8.0.130.0050.00013.31
8.0.120.0040.00416.88
8.0.110.0000.00816.80
8.0.100.0030.00516.66
8.0.90.0070.00016.82
8.0.80.0060.00916.80
8.0.70.0000.00716.67
8.0.60.0000.00716.71
8.0.50.0040.00416.66
8.0.30.0150.00816.94
8.0.20.0090.01017.40
8.0.10.0070.00017.05
8.0.00.0080.00916.47
7.4.330.0060.00015.55
7.4.320.0030.00316.35
7.4.300.0000.00716.45
7.4.290.0030.00516.53
7.4.280.0000.00716.43
7.4.270.0070.00016.45
7.4.260.0000.00713.25
7.4.250.0030.00316.42
7.4.240.0070.00016.42
7.4.230.0040.00416.64
7.4.220.0180.00316.45
7.4.210.0080.00816.46
7.4.200.0070.00016.37
7.4.160.0120.00416.49
7.4.150.0210.00417.40
7.4.140.0080.01217.86
7.4.130.0110.00916.41
7.4.120.0130.00716.36
7.4.110.0080.00816.30
7.4.100.0090.00916.53
7.4.90.0040.01316.43
7.4.80.0060.01319.39
7.4.70.0110.00516.37
7.4.60.0100.01016.49
7.4.50.0110.00316.29
7.4.40.0100.01016.32
7.4.30.0120.00616.35
7.4.00.0030.01514.46
7.3.330.0000.00612.96
7.3.320.0060.00013.15
7.3.310.0000.00716.06
7.3.300.0000.00616.20
7.3.290.0060.00916.24
7.3.280.0070.00916.27
7.3.270.0100.00717.40
7.3.260.0130.00316.34
7.3.250.0110.00716.33
7.3.240.0100.00716.36
7.3.230.0080.00816.18
7.3.210.0100.00716.35
7.3.200.0060.00916.42
7.3.190.0130.00316.41
7.3.180.0080.00816.26
7.3.170.0060.01016.35
7.3.160.0120.00316.14
7.3.10.0140.01016.26
7.3.00.0100.01416.21
7.2.330.0070.01116.70
7.2.320.0090.00916.69
7.2.310.0080.00916.61
7.2.300.0060.01016.66
7.2.290.0030.01416.45
7.2.130.0290.00316.35
7.2.120.0160.00316.27
7.2.110.0120.00616.32
7.2.100.0150.00916.43
7.2.90.0210.00916.66
7.2.80.0160.00616.68
7.2.70.0070.01116.88
7.2.60.0050.01216.41
7.2.50.0140.00516.81
7.2.40.0200.00716.46
7.2.30.0190.01116.75
7.2.20.0190.00916.34
7.2.10.0140.00716.11
7.2.00.0180.00316.71
7.1.250.0160.00415.36
7.1.200.0000.01015.83
7.1.70.0000.01017.07
7.1.60.0830.01333.05
7.1.50.0670.01032.77
7.1.40.0630.02032.50
7.1.30.0500.01332.51
7.1.20.0630.01332.70
7.1.10.0400.01014.61
7.1.00.0330.01714.52
7.0.200.0600.01014.75
7.0.190.0570.01314.63
7.0.180.0400.01314.35
7.0.170.0370.01014.27
7.0.160.0700.00714.43
7.0.150.0500.01014.64
7.0.140.0400.00714.62
7.0.130.0330.02014.61
7.0.120.0470.01314.59
7.0.110.0700.01014.37
7.0.100.2170.01314.45
7.0.90.0470.01314.40
7.0.80.0570.01714.57
7.0.70.0430.00714.45
7.0.60.0400.01014.31
7.0.50.0370.01314.36
7.0.40.0330.01714.72
7.0.30.0430.01314.66
7.0.20.0600.02014.38
7.0.10.0400.01014.49
7.0.00.0470.00714.44

preferences:
49.03 ms | 400 KiB | 5 Q