3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* 2013 https://stackoverflow.com/q/16933503/2943403 2016 https://stackoverflow.com/q/41244346/2943403 2016 https://stackoverflow.com/q/35736246/2943403 2021 https://stackoverflow.com/q/67334570/2943403 2018 https://stackoverflow.com/q/53134288/2943403 , 2020 https://stackoverflow.com/q/61850703/2943403 2017 https://stackoverflow.com/q/45737883/2943403 2015 bad dupe (off-language) https://stackoverflow.com/q/33300632/2943403 2019 https://stackoverflow.com/q/58092557/2943403 2016 https://stackoverflow.com/q/38087814/2943403 2016 https://stackoverflow.com/q/39667394/2943403 2020 https://stackoverflow.com/q/62485867/2943403 2015 https://stackoverflow.com/q/32854092/2943403 2021 https://stackoverflow.com/q/66837456/2943403 2017 https://stackoverflow.com/q/42130499/2943403 2019 https://stackoverflow.com/q/58064509/2943403 2020 https://stackoverflow.com/q/63136796/2943403 2015 https://stackoverflow.com/q/27817778/2943403 2018 https://stackoverflow.com/q/52668379/2943403 2011 https://stackoverflow.com/q/7958855/2943403 2012 https://stackoverflow.com/q/11493950/2943403 2018 https://stackoverflow.com/q/49736222/2943403 2018 https://stackoverflow.com/q/50219602/2943403 2018 https://stackoverflow.com/q/53273988/2943403 2015 https://stackoverflow.com/q/31624313/2943403 2013 https://stackoverflow.com/q/18827838/2943403 2012 https://stackoverflow.com/q/9380434/2943403 2020 https://stackoverflow.com/q/65352658/2943403 2016 https://stackoverflow.com/q/39328922/2943403 2018 https://stackoverflow.com/q/51741078/2943403 2018 https://stackoverflow.com/q/51694855/2943403 2016 https://stackoverflow.com/q/39736935/2943403 2019 https://stackoverflow.com/q/56053521/2943403 2018 https://stackoverflow.com/q/53686548/2943403 2019 https://stackoverflow.com/q/57169446/2943403 */

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.0140.00716.63
8.3.60.0120.00316.38
8.3.50.0070.00719.73
8.3.40.0070.00721.87
8.3.30.0100.01018.60
8.3.20.0000.00724.18
8.3.10.0080.00024.66
8.3.00.0070.00026.16
8.2.190.0090.00916.58
8.2.180.0100.00725.92
8.2.170.0100.01018.89
8.2.160.0000.01322.96
8.2.150.0040.00425.66
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00226.16
8.2.110.0030.00622.29
8.2.100.0040.00717.78
8.2.90.0040.00417.72
8.2.80.0090.00017.38
8.2.70.0080.00017.50
8.2.60.0000.00717.93
8.2.50.0090.00018.07
8.2.40.0040.00419.95
8.2.30.0000.00717.83
8.2.20.0040.00420.42
8.2.10.0040.00417.92
8.2.00.0040.00419.10
8.1.280.0150.00625.92
8.1.270.0080.00023.99
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0080.00822.42
8.1.230.0090.00322.50
8.1.220.0000.00917.74
8.1.210.0000.00818.84
8.1.200.0000.00817.23
8.1.190.0000.00717.22
8.1.180.0090.00018.10
8.1.170.0000.00818.42
8.1.160.0040.00418.74
8.1.150.0040.00418.44
8.1.140.0040.00417.31
8.1.130.0000.00718.66
8.1.120.0060.00317.22
8.1.110.0070.00017.31
8.1.100.0080.00017.32
8.1.90.0030.00317.30
8.1.80.0000.00717.34
8.1.70.0070.00017.35
8.1.60.0000.00917.27
8.1.50.0160.00017.38
8.1.40.0130.00317.40
8.1.30.0140.00417.33
8.1.20.0120.00617.45
8.1.10.0120.00617.36
8.1.00.0120.00517.33
8.0.300.0030.00319.90
8.0.290.0000.00816.58
8.0.280.0050.00518.17
8.0.270.0030.00517.86
8.0.260.0030.00318.21
8.0.250.0040.00416.69
8.0.240.0030.00516.85
8.0.230.0070.00016.70
8.0.220.0040.00416.77
8.0.210.0030.00316.62
8.0.200.0040.00416.67
8.0.190.0120.00416.65
8.0.180.0050.01016.69
8.0.170.0120.00216.72
8.0.160.0140.00016.73
8.0.150.0100.00516.64
8.0.140.0110.00316.66
8.0.130.0140.00016.63
8.0.120.0100.00616.64
8.0.110.0100.00316.75
8.0.100.0110.00316.72
8.0.90.0090.00516.77
8.0.80.0100.00316.82
8.0.70.0110.00416.61
8.0.60.0140.00016.65
8.0.50.0090.00316.69
8.0.30.0080.00816.71
8.0.20.0150.00016.76
8.0.10.0110.00416.68
7.4.330.0000.00515.55
7.4.320.0060.00016.31
7.4.300.0000.00716.25
7.4.290.0120.00516.30
7.4.280.0120.00416.42
7.4.270.0070.00716.34
7.4.260.0150.00016.23
7.4.250.0110.00516.26
7.4.240.0120.00416.49
7.4.230.0130.00316.49
7.4.220.0140.00016.36
7.4.210.0110.00416.42
7.4.200.0100.00316.43
7.4.190.0110.00416.42
7.4.180.0080.00616.32
7.4.160.0100.00516.49
7.4.150.0100.00416.35
7.4.140.0120.00216.35
7.4.130.0130.00016.31
7.4.120.0060.00916.26
7.4.110.0110.00416.23
7.4.100.0090.00416.38
7.4.90.0030.01016.22
7.4.80.0090.00616.09
7.4.70.0090.00416.22
7.4.60.0080.00616.33
7.4.50.0030.01016.17
7.4.40.0070.00716.08
7.4.30.0110.00216.10
7.4.20.0090.00516.25
7.4.10.0090.00616.26
7.4.00.0140.00016.25

preferences:
37.92 ms | 401 KiB | 5 Q