3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [2015 => '2015'], [2016 => '2016'], [2017 => '2017'], [2018 => '2018'], [2019 => '2019'], [2020 => '2020'], [2021 => '2021'], [2022 => '2022'], [2023 => '2023'] ]; var_export( array_reduce( $array, fn($result, $row) => array_replace($result, $row), [] ) );

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.0090.01219.93
8.4.150.0030.00014.05
8.4.140.0140.00717.62
8.4.130.0040.00617.78
8.4.120.0120.00820.59
8.4.110.0090.01117.82
8.4.100.0100.00717.67
8.4.90.0100.01020.51
8.4.80.0110.00818.96
8.4.70.0170.00520.52
8.4.60.0100.01220.57
8.4.50.0050.00617.61
8.4.40.0100.01019.30
8.4.30.0040.01219.04
8.4.20.0060.01225.93
8.4.10.0080.00023.89
8.3.280.0100.00918.18
8.3.270.0090.01016.27
8.3.260.0060.00716.48
8.3.250.0130.00719.14
8.3.240.0140.00516.57
8.3.230.0110.00916.78
8.3.220.0120.00619.09
8.3.210.0100.00916.71
8.3.200.0040.00416.55
8.3.190.0090.01017.10
8.3.180.0120.00516.64
8.3.170.0130.00618.75
8.3.160.0070.01016.50
8.3.150.0080.00819.02
8.3.140.0070.00717.40
8.3.130.0070.01418.43
8.3.120.0090.00018.98
8.3.110.0040.00420.94
8.3.100.0030.00616.79
8.3.90.0030.01026.77
8.3.80.0030.00617.97
8.3.70.0040.01116.13
8.3.60.0100.01016.75
8.3.50.0090.00918.37
8.3.40.0100.00320.05
8.3.30.0070.00718.58
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0060.00326.16
8.2.290.0070.00416.60
8.2.280.0120.01018.49
8.2.270.0200.00016.96
8.2.260.0070.00019.06
8.2.250.0110.00716.41
8.2.240.0110.00817.12
8.2.230.0000.00922.58
8.2.220.0090.00024.06
8.2.210.0110.00326.77
8.2.200.0090.00018.29
8.2.190.0120.00316.58
8.2.180.0140.00016.75
8.2.170.0140.00719.09
8.2.160.0070.01422.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0000.00826.16
8.2.110.0000.01022.00
8.2.100.0120.00017.72
8.2.90.0050.00317.63
8.2.80.0000.00818.76
8.2.70.0040.00417.93
8.2.60.0030.00617.63
8.2.50.0040.00417.63
8.2.40.0080.00019.94
8.2.30.0040.00418.04
8.2.20.0000.01119.30
8.2.10.0070.00517.73
8.2.00.0150.00217.71
8.1.330.0090.00915.98
8.1.320.0110.00616.00
8.1.310.0030.00518.30
8.1.300.0030.00617.89
8.1.290.0050.00530.84
8.1.280.0070.01025.92
8.1.270.0050.00324.66
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.86
8.1.230.0070.00419.04
8.1.220.0040.00417.76
8.1.210.0000.00918.77
8.1.200.0050.00817.11
8.1.190.0040.00417.38
8.1.180.0040.00418.10
8.1.170.0040.00419.03
8.1.160.0040.00418.80
8.1.150.0050.00218.68
8.1.140.0140.00617.42
8.1.130.0150.00317.46
8.1.120.0130.00517.49
8.1.110.0150.00217.42
8.1.100.0150.00217.47
8.1.90.0130.00617.53
8.1.80.0130.00417.42
8.1.70.0140.00217.47
8.1.60.0080.00817.61
8.1.50.0110.00817.55
8.1.40.0050.00317.63
8.1.30.0110.00417.61
8.1.20.0140.00017.66
8.1.10.0100.00417.43
8.1.00.0100.00417.39
8.0.300.0000.00718.77
8.0.290.0080.00016.75
8.0.280.0030.00318.43
8.0.270.0150.00016.77
8.0.260.0120.00616.64
8.0.250.0080.00816.79
8.0.240.0160.00016.78
8.0.230.0100.00516.83
8.0.220.0100.00516.77
8.0.210.0100.00516.72
8.0.200.0100.00316.86
8.0.190.0120.00516.87
8.0.180.0080.00516.89
8.0.170.0070.00716.84
8.0.160.0100.00616.88
8.0.150.0090.00116.78
8.0.140.0120.00416.74
8.0.130.0100.00616.76
8.0.120.0140.00316.74
8.0.110.0100.00516.79
8.0.100.0140.00116.82
8.0.90.0140.00416.78
8.0.80.0090.00616.81
8.0.70.0140.00016.83
8.0.60.0110.00516.76
8.0.50.0110.00516.74
8.0.30.0120.00516.82
8.0.20.0130.00316.75
8.0.10.0110.00416.89

preferences:
28.83 ms | 403 KiB | 5 Q