3v4l.org

run code in 300+ PHP versions simultaneously
<?php $original = []; foreach (range(1, 20_000) as $iteration) { $original[] = [ 'id' => str_repeat("{$iteration}.", 4), 'name' => 'name', ]; } var_dump( array_reduce( $original, static function (array $result, array $item): array { $result[$item['id']] = $item['name']; return $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.3.70.0371.65127.58
8.3.60.0071.73230.44
8.3.50.0401.74930.57
8.3.40.0471.66931.35
8.3.30.0371.65329.96
8.3.20.0130.91333.02
8.3.10.0130.91933.11
8.3.00.0200.91133.01
8.2.190.0331.63627.60
8.2.180.0401.65428.15
8.2.170.0471.72029.99
8.2.160.0471.77932.05
8.2.150.0130.88931.64
8.2.140.0230.90329.87
8.2.130.0130.92029.28
8.2.120.0270.91130.58
8.2.110.0401.88530.32
8.2.100.0271.19428.94
8.2.90.0071.14529.16
8.2.80.0071.16730.37
8.2.70.0101.12831.92
8.2.60.0401.34928.19
8.2.50.0101.14928.75
8.2.40.0071.13930.59
8.2.30.0171.12929.16
8.2.20.0131.24430.09
8.2.10.0261.24529.91
8.2.00.0271.28429.89
8.1.280.0471.67128.32
8.1.270.0130.91234.22
8.1.260.0170.92438.05
8.1.250.0101.01936.04
8.1.240.0171.78433.50
8.1.230.0271.18832.97
8.1.220.0131.10129.55
8.1.210.0071.11230.91
8.1.200.0171.12129.49
8.1.190.0101.10329.15
8.1.180.0131.10529.68
8.1.170.0201.10730.64
8.1.160.0101.13230.90
8.1.150.0101.21630.80
8.1.140.0131.22730.74
8.1.130.0271.22930.71
8.1.120.0371.20330.74
8.1.110.0171.22730.86
8.1.100.0201.22630.86
8.1.90.0231.20530.72
8.1.80.0301.21730.79
8.1.70.0301.23730.77
8.1.60.0231.24230.97
8.1.50.0271.22830.79
8.1.40.0461.20331.04
8.1.30.0201.22730.95
8.1.20.0231.23631.05
8.1.10.0261.22530.77
8.1.00.0271.22030.83
8.0.300.0101.10531.92
8.0.290.0131.11628.43
8.0.280.0201.11630.32
8.0.270.0101.23829.83
8.0.260.0261.23229.85
8.0.250.0211.22829.85
8.0.240.0201.22629.90
8.0.230.0231.24729.90
8.0.220.0301.23229.86
8.0.210.0401.23029.86
8.0.200.0201.22829.84
8.0.190.0201.21629.92
8.0.180.0461.35429.98
8.0.170.0291.33129.93
8.0.160.0171.24329.93
8.0.150.0201.25129.83
8.0.140.0131.23129.92
8.0.130.0161.24229.86
8.0.120.0291.42029.89
8.0.110.0271.29929.85
8.0.100.0271.21429.75
8.0.90.0301.20729.92
8.0.80.0201.23529.78
8.0.70.0171.22429.90
8.0.60.0271.21529.84
8.0.50.0301.22129.76
8.0.30.0361.19729.79
8.0.20.0171.24029.99
8.0.10.0171.28729.95

preferences:
42.85 ms | 402 KiB | 5 Q