3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ["2" => 6, "5" => 1], ["2" => 1, "5" => 3], ]; var_export( array_reduce( $array, fn($result, $row) => array_reduce( array_keys($row), fn($res, $k) => isset($res[$k]) && $res[$k] >= $row[$k] ? $res : array_replace($res, [$k => $row[$k]]), $result ), [] ) );

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.130.0130.00817.97
8.4.120.0100.00722.44
8.4.110.0110.00922.04
8.4.100.0110.00917.90
8.4.90.0090.01122.30
8.4.80.0060.00317.87
8.4.70.0060.00217.89
8.4.60.0100.01019.11
8.4.50.0100.00518.90
8.4.40.0100.01017.65
8.4.30.0030.00518.96
8.4.20.0140.00717.83
8.4.10.0040.01219.44
8.3.250.0140.00418.74
8.3.240.0090.00616.85
8.3.230.0120.00716.57
8.3.220.0080.01017.38
8.3.210.0090.01118.57
8.3.200.0050.00416.73
8.3.190.0120.00617.38
8.3.180.0050.00416.85
8.3.170.0040.01120.88
8.3.160.0180.00020.19
8.3.150.0170.00316.71
8.3.140.0120.00618.61
8.3.130.0030.00618.41
8.3.120.0090.00020.91
8.3.110.0090.00018.49
8.3.100.0090.00618.31
8.3.90.0110.00718.43
8.3.80.0060.00318.30
8.3.70.0090.00618.43
8.3.60.0130.00618.56
8.3.50.0040.01816.84
8.3.40.0100.00720.06
8.3.30.0070.00720.17
8.3.20.0000.00724.18
8.3.10.0000.00824.66
8.3.00.0140.00728.09
8.2.290.0130.00520.48
8.2.280.0100.01118.61
8.2.270.0120.00618.99
8.2.260.0110.00418.42
8.2.250.0090.00018.66
8.2.240.0060.00317.06
8.2.230.0030.00620.94
8.2.220.0100.00024.06
8.2.210.0070.01126.77
8.2.200.0040.00818.16
8.2.190.0150.00318.29
8.2.180.0110.00318.20
8.2.170.0140.00719.04
8.2.160.0090.00622.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0070.01028.09
8.2.120.0060.00928.09
8.2.110.0120.00628.09
8.2.100.0060.01228.09
8.2.90.0120.00628.09
8.2.80.0180.00028.09
8.2.70.0120.00328.09
8.2.60.0030.01028.09
8.2.50.0040.01628.09
8.2.40.0090.00928.09
8.2.30.0150.00328.09
8.2.20.0000.01528.09
8.2.10.0040.00428.09
8.2.00.0040.00428.09
8.1.330.0100.00822.21
8.1.320.0040.00616.23
8.1.310.0150.00318.39
8.1.300.0110.00418.35
8.1.290.0090.00018.88
8.1.280.0070.01125.92
8.1.270.0040.00422.10
8.1.260.0080.00028.09
8.1.250.0050.00328.09
8.1.240.0040.00428.09
8.1.230.0000.00828.09
8.1.220.0080.00028.09
8.1.210.0000.00828.09
8.1.200.0040.00428.09
8.1.190.0000.00828.09
8.1.180.0030.00528.09
8.1.170.0050.00328.09
8.1.160.0090.00028.09
8.1.150.0050.00328.09
8.1.140.0050.00328.09
8.1.130.0080.00028.09
8.1.120.0040.00428.09
8.1.110.0040.00428.09
8.1.100.0000.00828.09
8.1.90.0040.00428.09
8.1.80.0040.00428.09
8.1.70.0040.00428.09
8.1.60.0040.00428.09
8.1.50.0000.00828.09
8.1.40.0080.00028.09
8.1.30.0080.00028.09
8.1.20.0050.00328.09
8.1.10.0000.00928.09
8.1.00.0050.00328.09

preferences:
30.97 ms | 403 KiB | 5 Q