3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ['a', 'b', 'c']; $b = [ 23 => 'x', 'y', 'z' ]; $c = array_merge($a, $b); $d = $a + $b; print_r(compact('a', 'b', 'c', 'd')); $a = ['a' => 'a', 'b' => 'b', 'c' => 'c']; $b = [ 23 => 'x', 'y', 'z' ]; $c = array_merge($a, $b); $d = $a + $b; print_r(compact('a', 'b', '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.4.120.0110.00919.46
8.4.110.0120.00817.76
8.4.100.0130.00517.68
8.4.90.0110.00920.57
8.4.80.0140.00519.15
8.4.70.0050.00317.82
8.4.60.0140.00917.46
8.4.50.0110.01017.55
8.4.40.0100.01019.27
8.4.30.0130.00720.36
8.4.20.0080.01217.95
8.4.10.0120.00419.36
8.3.250.0120.00716.72
8.3.240.0080.01116.63
8.3.230.0110.00818.36
8.3.220.0110.00919.02
8.3.210.0130.00616.53
8.3.200.0090.00816.38
8.3.190.0080.01116.60
8.3.180.0110.00816.63
8.3.170.0030.01616.41
8.3.160.0180.00016.80
8.3.150.0040.01117.21
8.3.140.0030.00516.35
8.3.130.0030.00616.77
8.3.120.0040.01118.67
8.3.110.0150.00016.70
8.3.100.0080.00018.18
8.3.90.0070.01018.20
8.3.80.0090.00019.36
8.3.70.0100.00716.38
8.3.60.0070.01018.43
8.3.50.0110.00523.67
8.3.40.0110.00418.79
8.3.30.0140.00418.72
8.3.20.0040.00420.73
8.3.10.0080.00022.08
8.3.00.0040.00421.82
8.2.290.0110.00816.55
8.2.280.0040.00318.54
8.2.270.0070.01117.31
8.2.260.0140.00416.41
8.2.250.0030.00616.47
8.2.240.0070.01117.36
8.2.230.0060.00920.94
8.2.220.0030.00624.06
8.2.210.0050.00326.77
8.2.200.0090.00018.88
8.2.190.0150.00018.45
8.2.180.0070.01318.16
8.2.170.0090.00622.96
8.2.160.0130.00322.30
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0100.00026.16
8.2.120.0040.00421.00
8.2.110.0000.01021.04
8.2.100.0100.00317.84
8.2.90.0070.00317.78
8.2.80.0030.00518.95
8.2.70.0040.00417.63
8.2.60.0080.00017.50
8.2.50.0040.00418.04
8.2.40.0040.00417.91
8.2.30.0040.00419.66
8.2.20.0040.00417.96
8.2.10.0000.00719.13
8.2.00.0000.00719.16
8.1.330.0130.00615.98
8.1.320.0060.00215.97
8.1.310.0070.01116.57
8.1.300.0070.00718.35
8.1.290.0040.00430.84
8.1.280.0100.01025.92
8.1.270.0050.00322.05
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0080.00022.09
8.1.230.0080.00422.66
8.1.220.0030.00517.76
8.1.210.0080.00018.87
8.1.200.0030.00517.23
8.1.190.0090.00017.23
8.1.180.0040.00418.10
8.1.170.0040.00417.62
8.1.160.0080.00018.90
8.1.150.0000.00818.98
8.1.140.0040.00420.74
8.1.130.0000.00722.11
8.1.120.0030.00317.30
8.1.110.0000.00717.38
8.1.100.0030.00517.31
8.1.90.0000.00717.29
8.1.80.0000.00717.37
8.1.70.0000.00717.33
8.1.60.0060.00317.58
8.1.50.0060.00317.52
8.1.40.0120.00017.35
8.1.30.0040.00417.47
8.1.20.0050.00317.63
8.1.10.0000.00717.41
8.1.00.0030.00517.34
8.0.300.0070.00020.09
8.0.290.0020.00516.75
8.0.280.0030.00318.44
8.0.270.0030.00317.93
8.0.260.0030.00720.02
8.0.250.0040.00416.84
8.0.240.0040.00416.86
8.0.230.0000.00716.88
8.0.220.0000.00716.87
8.0.210.0000.00716.77
8.0.200.0070.00016.85
8.0.190.0000.00716.87
8.0.180.0040.00416.91
8.0.170.0000.01016.77
8.0.160.0040.00416.93
8.0.150.0000.00716.73
8.0.140.0040.00416.77
8.0.130.0070.00013.34
8.0.120.0000.00716.83
8.0.110.0070.00016.85
8.0.100.0050.00216.74
8.0.90.0000.00816.85
8.0.80.0050.00916.86
8.0.70.0000.00716.68
8.0.60.0070.00016.76
8.0.50.0070.00016.80
8.0.30.0070.01617.12
8.0.20.0100.01117.02
8.0.10.0000.00717.09
8.0.00.0090.01516.71
7.4.330.0000.00516.83
7.4.320.0030.00316.45
7.4.300.0040.00316.47
7.4.290.0040.00416.52
7.4.280.0000.00816.51
7.4.270.0000.00716.48
7.4.260.0000.00513.25
7.4.250.0000.00716.43
7.4.240.0050.00216.52
7.4.230.0030.00316.39
7.4.220.0040.00316.39
7.4.210.0090.00716.51
7.4.200.0030.00316.36
7.4.130.0030.01316.55
7.4.120.0070.01116.30
7.4.110.0040.01916.58
7.4.100.0100.00616.63
7.4.90.0100.00916.20
7.4.80.0130.00519.39
7.4.70.0030.01416.55
7.4.60.0100.01116.30
7.4.50.0140.00316.51
7.4.40.0040.01116.48
7.4.10.0040.00914.89
7.4.00.0060.00614.83
7.3.330.0000.00716.26
7.3.320.0030.00313.11
7.3.310.0030.00316.15
7.3.300.0000.00716.15
7.3.290.0050.01016.20
7.3.260.0070.01316.14
7.3.230.0120.00616.22
7.3.210.0100.00716.47
7.3.200.0130.00616.53
7.3.190.0140.00316.40
7.3.180.0080.00816.21
7.3.170.0080.00816.20
7.3.160.0060.01016.27
7.3.130.0030.01014.70
7.3.120.0100.00314.56
7.3.110.0110.00314.43
7.3.100.0080.00414.63
7.3.90.0120.00314.55
7.3.80.0170.00014.84
7.3.70.0130.00314.84
7.3.60.0150.00414.65
7.3.50.0060.00914.70
7.3.40.0090.01214.44
7.3.30.0140.00314.49
7.3.20.0060.01314.43
7.3.10.0120.00614.66
7.3.00.0000.01514.73
7.2.330.0080.01816.48
7.2.320.0120.00916.55
7.2.310.0040.01616.57
7.2.300.0130.01016.45
7.2.290.0030.01316.34
7.2.260.0110.00614.86
7.2.250.0070.00714.83
7.2.240.0000.01414.81
7.2.230.0030.01015.07
7.2.220.0060.01114.75
7.2.210.0140.00015.14
7.2.200.0060.01115.03
7.2.190.0060.00614.68
7.2.180.0040.01514.79
7.2.170.0080.01214.74
7.2.160.0050.01114.80
7.2.150.0000.01515.19
7.2.140.0120.00314.76
7.2.130.0030.01215.04
7.2.120.0050.00915.08
7.2.110.0110.00314.92
7.2.100.0100.00314.90
7.2.90.0100.00514.83
7.2.80.0080.00814.82
7.2.70.0040.01114.83
7.2.60.0050.01115.07
7.2.50.0140.00315.09
7.2.40.0060.01415.07
7.2.30.0030.01215.06
7.2.20.0080.00815.04
7.2.10.0100.00714.88
7.2.00.0060.01215.05

preferences:
126.34 ms | 403 KiB | 5 Q