3v4l.org

run code in 300+ PHP versions simultaneously
<?php $collection = [ [1 => 10.0, 2 => 20.0, 3 => 50.0, 4 => 80.0, 5 => 100.0], [3 => 20.0, 5 => 20.0, 6 => 100.0, 7 => 10.0], [1 => 30.0, 3 => 30.0, 5 => 10.0, 8 => 10.0] ]; var_export( array_reduce( array_keys( array_intersect_ukey( ...array_merge( $collection, [fn($a, $b) => $a <=> $b] ) ) ), fn($result, $k) => $result + [$k => array_sum(array_column($collection, $k)) / count($collection)], [] ) );

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.0160.00717.61
8.4.130.0080.00718.70
8.4.120.0090.00724.27
8.4.110.0120.00818.62
8.4.100.0100.00918.91
8.4.90.0110.00822.33
8.4.80.0070.00418.84
8.4.70.0110.01118.04
8.4.60.0130.00718.87
8.4.50.0100.01118.50
8.4.40.0140.00719.14
8.4.30.0100.01018.89
8.4.20.0120.00325.89
8.4.10.0070.01323.90
8.3.270.0120.00916.46
8.3.260.0040.00416.55
8.3.250.0140.00519.09
8.3.240.0100.00617.23
8.3.230.0100.00816.66
8.3.220.0100.00818.93
8.3.210.0110.00816.82
8.3.200.0120.00816.78
8.3.190.0050.00317.03
8.3.180.0100.00817.11
8.3.170.0090.00920.86
8.3.160.0080.01117.08
8.3.150.0090.00917.18
8.3.140.0120.00616.68
8.3.130.0120.00918.36
8.3.120.0100.00020.93
8.3.110.0050.00316.43
8.3.100.0090.00016.86
8.3.90.0040.00426.77
8.3.80.0090.00316.88
8.3.70.0170.00018.31
8.3.60.0130.00316.50
8.3.50.0000.01418.37
8.3.40.0100.00320.48
8.3.30.0070.00718.62
8.3.20.0050.00224.18
8.3.10.0060.00324.66
8.3.00.0050.00326.16
8.2.290.0090.01020.36
8.2.280.0140.00618.50
8.2.270.0110.00716.98
8.2.260.0030.01416.57
8.2.250.0090.00916.40
8.2.240.0070.00317.14
8.2.230.0070.00320.94
8.2.220.0060.00324.06
8.2.210.0070.00726.77
8.2.200.0080.00416.38
8.2.190.0090.00916.75
8.2.180.0110.00616.38
8.2.170.0100.00718.96
8.2.160.0030.01022.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00326.16
8.2.110.0030.00722.15
8.2.100.0060.00617.91
8.2.90.0070.00020.59
8.2.80.0070.00317.75
8.2.70.0000.00817.75
8.2.60.0060.00318.05
8.2.50.0000.00818.07
8.2.40.0040.00420.00
8.2.30.0000.00818.00
8.2.20.0030.00519.30
8.2.10.0000.00818.23
8.2.00.0130.00617.86
8.1.330.0100.00921.68
8.1.320.0080.01117.69
8.1.310.0050.00516.45
8.1.300.0160.00018.32
8.1.290.0110.00030.84
8.1.280.0140.00325.92
8.1.270.0050.00324.66
8.1.260.0070.00026.35
8.1.250.0030.00628.09
8.1.240.0090.00022.06
8.1.230.0120.00022.66
8.1.220.0050.00517.76
8.1.210.0050.00318.90
8.1.200.0060.00317.23
8.1.190.0080.00017.47
8.1.180.0040.00418.10
8.1.170.0050.00318.46
8.1.160.0000.00818.81
8.1.150.0000.00718.64
8.1.140.0000.00723.90
8.1.130.0100.00717.45
8.1.120.0090.00919.25
8.1.110.0130.00417.53
8.1.100.0120.00617.45
8.1.90.0180.00017.48
8.1.80.0140.00417.57
8.1.70.0150.00317.43
8.1.60.0140.00819.45
8.1.50.0140.00719.32
8.1.40.0140.00617.57
8.1.30.0180.00417.63
8.1.20.0170.00319.45
8.1.10.0100.01017.54
8.1.00.0100.01019.21
8.0.300.0070.00020.04
8.0.290.0040.00416.75
8.0.280.0070.00018.43
8.0.270.0130.00317.01
8.0.260.0140.00217.01
8.0.250.0000.01017.01
8.0.240.0180.00018.61
8.0.230.0100.00717.01
8.0.220.0150.00317.01
8.0.210.0100.00717.01
8.0.200.0160.00317.01
8.0.190.0090.00917.01
8.0.180.0110.00517.01
8.0.170.0040.00817.01
8.0.160.0030.00618.71
8.0.150.0070.00418.54
8.0.140.0070.00418.66
8.0.130.0070.00518.57
8.0.120.0030.00718.51
8.0.110.0050.00717.01
8.0.100.0110.00017.01
8.0.90.0000.01217.01
8.0.80.0100.00317.01
8.0.70.0070.00717.01
8.0.60.0090.00218.70
8.0.50.0090.00317.01
8.0.30.0060.00617.01
8.0.20.0120.00617.01
8.0.10.0140.00317.01

preferences:
36.92 ms | 403 KiB | 5 Q