3v4l.org

run code in 300+ PHP versions simultaneously
<?php $testOne = array ( 'Smith'=> 98, 'Johnson' => 67, ); $testTwo = array ( 'Smith'=> 100, 'Johnson' => 85, ); $testThree = array ( 'Smith'=> 78, 'Johnson' => 92, ); $testFour = array ( 'Smith'=> 91, 'Johnson' => 88, ); $total = [$testOne, $testTwo, $testThree, $testFour]; Foreach($total[0] as $name => $val){ $averages[$name] = array_sum(array_column($total, $name))/count($total); } var_dump($averages);

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.0130.00817.64
8.4.130.0090.00819.36
8.4.120.0030.00520.45
8.4.110.0090.01119.52
8.4.100.0110.00918.69
8.4.90.0120.00822.29
8.4.80.0030.00618.72
8.4.70.0120.00417.91
8.4.60.0100.00918.59
8.4.50.0100.01120.42
8.4.40.0160.00417.57
8.4.30.0180.00317.74
8.4.20.0160.00319.46
8.4.10.0060.00317.66
8.3.270.0120.01016.66
8.3.260.0120.00916.52
8.3.250.0070.00717.21
8.3.240.0120.00816.45
8.3.230.0110.00016.55
8.3.220.0130.00718.81
8.3.210.0110.00416.60
8.3.200.0110.00916.49
8.3.190.0040.00419.13
8.3.180.0110.00716.85
8.3.170.0040.01420.52
8.3.160.0100.00716.62
8.3.150.0110.00717.09
8.3.140.0140.00416.55
8.3.130.0090.00916.76
8.3.120.0130.00720.52
8.3.110.0120.00320.94
8.3.100.0060.00324.06
8.3.90.0000.01826.77
8.3.80.0030.00617.97
8.3.70.0120.00318.31
8.3.60.0090.00618.14
8.3.50.0070.00717.13
8.3.40.0110.00418.53
8.3.30.0120.00318.63
8.3.20.0050.00319.19
8.3.10.0080.00023.61
8.3.00.0040.00423.58
8.2.290.0140.00520.34
8.2.280.0020.00618.29
8.2.270.0110.00716.97
8.2.260.0060.00318.06
8.2.250.0080.00018.38
8.2.240.0060.00318.75
8.2.230.0090.00022.58
8.2.220.0040.00437.54
8.2.210.0030.01626.77
8.2.200.0090.00018.16
8.2.190.0110.00416.58
8.2.180.0060.00916.50
8.2.170.0100.00622.96
8.2.160.0060.01018.98
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.01022.21
8.2.120.0000.00826.35
8.2.110.0090.00022.20
8.2.100.0120.00017.91
8.2.90.0030.00617.91
8.2.80.0030.00517.97
8.2.70.0040.00417.93
8.2.60.0040.01117.77
8.2.50.0050.00318.10
8.2.40.0000.00819.51
8.2.30.0020.00719.18
8.2.20.0040.00418.00
8.2.10.0040.00418.16
8.2.00.0000.00719.53
8.1.330.0120.00721.88
8.1.320.0110.00916.13
8.1.310.0110.00416.25
8.1.300.0030.00617.87
8.1.290.0060.00330.84
8.1.280.0130.00625.92
8.1.270.0040.00421.85
8.1.260.0000.00726.35
8.1.250.0060.00328.09
8.1.240.0030.01722.11
8.1.230.0080.00422.75
8.1.220.0040.00417.74
8.1.210.0040.00418.89
8.1.200.0100.00017.35
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0040.00418.74
8.1.160.0050.00318.88
8.1.150.0040.00418.99
8.1.140.0000.00719.02
8.1.130.0000.00717.49
8.1.120.0000.00717.50
8.1.110.0000.00717.50
8.1.100.0040.00417.43
8.1.90.0000.01117.41
8.1.80.0000.00817.43
8.1.70.0000.00717.42
8.1.60.0030.00717.47
8.1.50.0050.00317.52
8.1.40.0000.00917.37
8.1.30.0030.00517.70
8.1.20.0040.00417.64
8.1.10.0040.00417.61
8.1.00.0060.00317.51
8.0.300.0040.00419.69
8.0.290.0090.00416.58
8.0.280.0000.00818.34
8.0.270.0030.00317.18
8.0.260.0030.00316.72
8.0.250.0000.00716.92
8.0.240.0000.00716.94
8.0.230.0000.00816.93
8.0.220.0040.00416.88
8.0.210.0040.00416.85
8.0.200.0000.00716.98
8.0.190.0030.00516.84
8.0.180.0030.00616.92
8.0.170.0030.00616.95
8.0.160.0040.00416.89
8.0.150.0030.00616.87
8.0.140.0030.00316.84
8.0.130.0000.00513.33
8.0.120.0000.00816.84
8.0.110.0050.00316.75
8.0.100.0000.00816.81
8.0.90.0070.00016.88
8.0.80.0120.00716.84
8.0.70.0000.00716.75
8.0.60.0040.00316.78
8.0.50.0070.00016.75
8.0.30.0100.00917.06
8.0.20.0070.01117.40
8.0.10.0030.00516.80
8.0.00.0120.00616.79
7.4.330.0060.00015.55
7.4.320.0030.00316.61
7.4.300.0060.00016.63
7.4.290.0070.00016.57
7.4.280.0080.00016.58
7.4.270.0040.00716.57
7.4.260.0070.00016.47
7.4.250.0040.00416.60
7.4.240.0030.00316.51
7.4.230.0080.00016.66
7.4.220.0030.00516.66
7.4.210.0080.00816.66
7.4.200.0000.00816.69
7.4.160.0090.00716.48
7.4.140.0080.01117.86
7.4.130.0150.00916.60
7.4.120.0100.00816.53
7.4.110.0150.00316.64
7.4.100.0070.01016.32
7.4.90.0100.01016.39
7.4.80.0030.01319.39
7.4.70.0120.00616.48
7.4.60.0080.00816.49
7.4.50.0040.01216.38
7.4.40.0150.00816.64
7.4.00.0030.01015.12
7.3.330.0050.00013.11
7.3.320.0000.00513.16
7.3.310.0030.00316.27
7.3.300.0070.00016.13
7.3.290.0070.00016.36
7.3.280.0040.01216.34
7.3.260.0090.00816.38
7.3.240.0140.00516.42
7.3.230.0060.01016.35
7.3.210.0110.01116.35
7.3.200.0060.00916.61
7.3.190.0060.00916.29
7.3.180.0120.00416.27
7.3.170.0070.01016.50
7.3.160.0080.00816.39
7.2.330.0140.00316.52
7.2.320.0140.00316.77
7.2.310.0070.01716.40
7.2.300.0090.00916.65
7.2.290.0170.00516.43
7.2.80.0360.01314.79
7.2.70.0400.01215.14
7.2.60.0450.01015.09
7.2.50.0300.00315.17
7.2.40.0530.00315.09
7.2.30.0400.00714.80
7.2.20.0320.00714.78
7.2.10.0360.00715.02
7.2.00.0250.01115.13
7.1.200.0080.00415.57
7.1.190.0490.00913.81
7.1.180.0300.01113.95
7.1.170.0480.00913.68
7.1.160.0250.01113.73
7.1.150.0310.00913.84
7.1.140.0380.00913.93
7.1.130.0320.00613.86
7.1.120.0450.01014.07
7.1.110.0390.01413.89
7.1.100.0250.00614.07
7.1.90.0250.00713.75
7.1.80.0290.01313.79
7.1.70.0260.00413.82
7.1.60.0350.01631.77
7.1.50.0510.00631.79
7.1.40.0530.01031.95
7.1.30.0380.01731.52
7.1.20.0580.01031.72
7.1.10.0180.01113.75
7.1.00.0300.01213.87

preferences:
134.21 ms | 403 KiB | 5 Q