3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = Array(1 => 1, 2 =>4); $array1 = Array(3 => 5); $temp = $array + $array1; print_r($temp); echo json_encode($temp);

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.0080.01217.63
8.4.130.0030.00818.73
8.4.120.0040.00524.08
8.4.110.0090.01020.36
8.4.100.0100.01118.91
8.4.90.0080.00617.52
8.4.80.0110.00817.54
8.4.70.0070.00817.58
8.4.60.0030.00517.58
8.4.50.0070.00817.52
8.4.40.0070.01417.98
8.4.30.0130.00720.80
8.4.20.0090.01320.65
8.4.10.0060.00322.02
8.3.270.0120.00616.52
8.3.260.0160.00416.72
8.3.250.0100.00918.96
8.3.240.0110.00817.32
8.3.230.0110.00716.52
8.3.220.0030.00519.03
8.3.210.0060.00216.55
8.3.200.0110.00516.57
8.3.190.0120.00816.48
8.3.180.0150.00516.41
8.3.170.0130.00617.09
8.3.160.0100.01018.16
8.3.150.0120.00616.49
8.3.140.0120.00317.05
8.3.130.0070.01118.23
8.3.120.0130.00320.46
8.3.110.0160.00316.73
8.3.100.0080.00316.40
8.3.90.0140.00326.77
8.3.80.0030.00616.47
8.3.70.0120.00318.31
8.3.60.0140.00016.38
8.3.50.0100.00720.12
8.3.40.0080.00818.80
8.3.30.0120.00618.56
8.3.20.0000.00724.18
8.3.10.0050.00324.66
8.3.00.0030.00626.16
8.2.290.0140.00520.40
8.2.280.0120.00616.77
8.2.270.0130.00618.70
8.2.260.0140.00416.27
8.2.250.0060.01016.57
8.2.240.0090.00017.16
8.2.230.0070.00320.94
8.2.220.0000.00724.06
8.2.210.0080.00026.77
8.2.200.0030.00616.38
8.2.190.0200.00016.58
8.2.180.0070.01125.92
8.2.170.0030.01218.94
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0070.00021.06
8.2.110.0040.00419.08
8.2.100.0110.00017.72
8.2.90.0040.00417.84
8.2.80.0040.00417.97
8.2.70.0000.00917.63
8.2.60.0050.00317.63
8.2.50.0040.00417.98
8.2.40.0000.00818.09
8.2.30.0000.00817.94
8.2.20.0070.00020.33
8.2.10.0050.00217.98
8.2.00.0040.00419.22
8.1.330.0100.00821.84
8.1.320.0120.00816.23
8.1.310.0070.01118.49
8.1.300.0100.00020.16
8.1.290.0090.00030.84
8.1.280.0110.00425.92
8.1.270.0070.00023.99
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0030.00620.99
8.1.230.0120.00022.80
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0080.00017.13
8.1.190.0040.00417.23
8.1.180.0030.00618.10
8.1.170.0040.00417.62
8.1.160.0000.00720.61
8.1.150.0040.00418.50
8.1.140.0060.00317.37
8.1.130.0000.00818.77
8.1.120.0060.00317.30
8.1.110.0080.00017.39
8.1.100.0000.00817.43
8.1.90.0000.00817.35
8.1.80.0030.00417.28
8.1.70.0000.01517.35
8.1.60.0100.00317.38
8.1.50.0090.00817.25
8.1.40.0100.00917.41
8.1.30.0120.00917.54
8.1.20.0100.00917.63
8.1.10.0160.00317.44
8.1.00.0160.00217.46
8.0.300.0040.00419.98
8.0.290.0070.00016.75
8.0.280.0000.00818.39
8.0.270.0030.00316.88
8.0.260.0000.00618.44
8.0.250.0040.00416.96
8.0.240.0060.00317.09
8.0.230.0040.00416.80
8.0.220.0040.00416.90
8.0.210.0000.00816.83
8.0.200.0060.00616.98
8.0.190.0120.00416.89
8.0.180.0120.00416.81
8.0.170.0000.01416.70
8.0.160.0070.00016.75
8.0.150.0160.00016.83
8.0.140.0070.00816.79
8.0.130.0070.00816.87
8.0.120.0120.00416.84
8.0.110.0160.00016.73
8.0.100.0100.00716.87
8.0.90.0170.00016.72
8.0.80.0130.00316.92
8.0.70.0090.00616.73
8.0.60.0100.00516.83
8.0.50.0070.00716.76
8.0.30.0110.00416.67
8.0.20.0130.00316.93
8.0.10.0080.00816.88
7.4.330.0070.00015.55
7.4.320.0060.00016.52
7.4.300.0000.00816.52
7.4.290.0110.00416.55
7.4.280.0160.00016.28
7.4.270.0100.00616.42
7.4.260.0160.00016.52
7.4.250.0130.00816.34
7.4.240.0110.00816.51
7.4.230.0100.00616.45
7.4.220.0090.00616.41
7.4.210.0140.00316.43
7.4.200.0110.00316.42
7.4.190.0080.00916.55
7.4.180.0110.00416.58
7.4.160.0100.00316.43
7.4.150.0120.00316.40
7.4.140.0060.00616.38
7.4.130.0160.00016.45
7.4.120.0070.00716.28
7.4.110.0100.00516.27
7.4.100.0080.00416.38
7.4.90.0120.00316.36
7.4.80.0130.00316.39
7.4.70.0120.00416.34
7.4.60.0120.00216.23
7.4.50.0110.00416.30
7.4.40.0110.00416.05
7.4.30.0040.00816.43
7.4.20.0030.00616.35
7.4.10.0090.00016.32
7.4.00.0030.00616.31

preferences:
30.01 ms | 403 KiB | 5 Q