3v4l.org

run code in 300+ PHP versions simultaneously
<?php $v_4 = [ [1, 2, 3], [4, 5, 6], ]; $v_5 = [ [7, 8, 9], [10, 11, 12], ]; foreach ($v_4 as $i => &$row) { foreach ($row as $k => &$v) { $v += $v_5[$i][$k]; } } var_export($v_4);

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.5.00.0100.01020.03
8.4.150.0020.00014.05
8.4.140.0120.00917.39
8.4.130.0090.00817.64
8.4.120.0050.00420.19
8.4.110.0040.00524.06
8.4.100.0110.00817.46
8.4.90.0110.01018.45
8.4.80.0130.00817.73
8.4.70.0070.00217.75
8.4.60.0110.01120.72
8.4.50.0090.00919.36
8.4.40.0110.01117.95
8.4.30.0100.01018.62
8.4.20.0030.00617.96
8.4.10.0060.00321.88
8.3.280.0110.01018.52
8.3.270.0100.01016.81
8.3.260.0060.00216.79
8.3.250.0160.00318.83
8.3.240.0050.00416.66
8.3.230.0130.00616.77
8.3.220.0080.00717.23
8.3.210.0110.00816.57
8.3.200.0050.00416.33
8.3.190.0090.00917.24
8.3.180.0110.00916.65
8.3.170.0150.00317.44
8.3.160.0150.00316.92
8.3.150.0160.00317.12
8.3.140.0080.00017.23
8.3.130.0060.00318.38
8.3.120.0030.00620.92
8.3.110.0060.00620.94
8.3.100.0070.00318.44
8.3.90.0060.00926.77
8.3.80.0070.00416.50
8.3.70.0070.01416.58
8.3.60.0070.01416.38
8.3.50.0140.00318.38
8.3.40.0140.00320.21
8.3.30.0150.00018.48
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0070.00026.16
8.2.290.0090.00220.68
8.2.280.0120.00718.41
8.2.270.0070.01116.68
8.2.260.0060.00318.82
8.2.250.0050.00318.30
8.2.240.0000.00718.79
8.2.230.0070.00022.58
8.2.220.0030.00724.06
8.2.210.0080.00026.77
8.2.200.0060.00318.16
8.2.190.0110.01116.58
8.2.180.0060.00925.92
8.2.170.0120.00322.96
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0090.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00426.16
8.2.110.0080.00322.13
8.2.100.0080.00417.79
8.2.90.0040.00418.16
8.2.80.0030.00517.97
8.2.70.0000.00817.63
8.2.60.0090.00017.50
8.2.50.0050.00218.05
8.2.40.0040.00419.48
8.2.30.0040.00418.17
8.2.20.0040.00419.22
8.2.10.0000.00818.22
8.2.00.0040.00421.01
8.1.330.0130.00621.98
8.1.320.0120.00716.05
8.1.310.0110.00716.82
8.1.300.0030.00517.79
8.1.290.0000.00930.84
8.1.280.0100.00725.92
8.1.270.0040.00424.66
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0050.00523.84
8.1.230.0060.00621.00
8.1.220.0040.00417.78
8.1.210.0000.00818.77
8.1.200.0000.00817.64
8.1.190.0000.00817.36
8.1.180.0000.00718.10
8.1.170.0040.00417.62
8.1.160.0000.00719.02
8.1.150.0040.00418.64
8.1.140.0080.00017.36
8.1.130.0000.00718.89
8.1.120.0070.00017.41
8.1.110.0040.00417.46
8.1.100.0040.00917.48
8.1.90.0030.01117.33
8.1.80.0080.00717.39
8.1.70.0090.00617.38
8.1.60.0160.00317.53
8.1.50.0130.00617.51
8.1.40.0170.00317.48
8.1.30.0130.00717.62
8.1.20.0160.00417.66
8.1.10.0110.01017.34
8.1.00.0190.00017.29
8.0.300.0030.00320.15
8.0.290.0050.00316.75
8.0.280.0000.00818.50
8.0.270.0000.00716.73
8.0.260.0000.00618.32
8.0.250.0040.00416.98
8.0.240.0080.00016.98
8.0.230.0100.00516.87
8.0.220.0120.00416.84
8.0.210.0160.00016.91
8.0.200.0120.00416.87
8.0.190.0120.00416.80
8.0.180.0150.00216.80
8.0.170.0100.00716.93
8.0.160.0080.00816.76
8.0.150.0170.00016.86
8.0.140.0120.00316.81
8.0.130.0060.01016.73
8.0.120.0050.01316.89
8.0.110.0110.00516.66
8.0.100.0130.00216.71
8.0.90.0090.00616.94
8.0.80.0090.00616.75
8.0.70.0130.00316.76
8.0.60.0110.00316.87
8.0.50.0130.00316.81
8.0.30.0110.00416.88
8.0.20.0050.01016.95
8.0.10.0100.00616.97
7.4.330.0040.00015.55
7.4.320.0000.00716.61
7.4.300.0180.00016.48
7.4.290.0100.00816.47
7.4.280.0070.01016.50
7.4.270.0150.00416.38
7.4.260.0050.01016.56
7.4.250.0090.00016.57
7.4.240.0070.00016.50
7.4.230.0000.01016.61
7.4.220.0120.00316.38
7.4.210.0070.00716.48
7.4.200.0120.00216.44
7.4.190.0150.00016.61
7.4.180.0090.00616.48
7.4.160.0120.00216.53
7.4.150.0100.00616.50
7.4.140.0100.00516.44
7.4.130.0000.01116.38
7.4.120.0100.00616.39
7.4.110.0080.00816.43
7.4.100.0130.00316.46
7.4.90.0110.00516.41
7.4.80.0170.00016.38
7.4.70.0100.00316.35
7.4.60.0030.01016.39
7.4.50.0100.00316.27
7.4.40.0130.00316.32
7.4.30.0070.00416.35
7.4.20.0080.00616.35
7.4.10.0070.00716.16
7.4.00.0040.00816.30

preferences:
95.61 ms | 403 KiB | 5 Q