3v4l.org

run code in 300+ PHP versions simultaneously
<?phpclass Foo { const BAR = 'Bar';}function getFoo() { return new Foo();}var_dump(getFoo()::BAR);

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.0070.01016.58
8.3.60.0070.00716.50
8.3.50.0090.01022.81
8.3.40.0170.00318.62
8.3.30.0150.00019.01
8.3.20.0040.00420.16
8.3.10.0000.00723.61
8.3.00.0040.00419.00
8.2.180.0070.00718.26
8.2.170.0070.00722.96
8.2.160.0100.00320.46
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0040.01126.16
8.2.120.0070.00021.10
8.2.110.0130.00722.20
8.2.100.0110.00018.16
8.2.90.0030.00518.92
8.2.80.0000.00917.97
8.2.70.0030.00617.50
8.2.60.0050.00217.80
8.2.50.0030.00618.07
8.2.40.0030.00518.16
8.2.30.0030.00517.92
8.2.20.0040.00417.48
8.2.10.0000.00717.92
8.2.00.0000.00717.59
8.1.280.0040.01125.92
8.1.270.0110.00423.97
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0040.00423.88
8.1.230.0040.00719.04
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0070.00217.23
8.1.190.0050.00317.00
8.1.180.0030.00618.10
8.1.170.0080.00018.66
8.1.160.0050.00321.86
8.1.150.0000.00718.80
8.1.140.0060.00317.30
8.1.130.0030.00317.75
8.1.120.0000.00717.26
8.1.110.0000.00817.29
8.1.100.0070.00017.32
8.1.90.0040.00717.32
8.1.80.0000.00717.38
8.1.70.0000.00717.22
8.1.60.0040.00417.44
8.1.50.0050.00317.46
8.1.40.0000.00817.35
8.1.30.0030.00517.48
8.1.20.0040.00417.50
8.1.10.0030.00617.41
8.1.00.0060.00317.26
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0030.00318.28
8.0.270.0050.00217.18
8.0.260.0030.00317.14
8.0.250.0080.00016.86
8.0.240.0060.00016.86
8.0.230.0040.00416.68
8.0.220.0060.00016.73
8.0.210.0000.00616.77
8.0.200.0000.00616.80
8.0.190.0080.00016.81
8.0.180.0030.00316.84
8.0.170.0000.00716.75
8.0.160.0030.00316.70
8.0.150.0000.00716.80
8.0.140.0070.00016.69
8.0.130.0050.00313.33
8.0.120.0090.00016.74
8.0.110.0040.00416.59
8.0.100.0050.00216.81
8.0.90.0070.00016.78
8.0.80.0150.00616.80
8.0.70.0000.00716.62
8.0.60.0000.00716.74
8.0.50.0040.00416.73
8.0.30.0060.01316.96
8.0.20.0080.01017.40
8.0.10.0040.00416.84
8.0.00.0100.00816.70
7.4.330.0060.00015.05
7.4.320.0030.00316.47
7.4.300.0060.00016.36
7.4.290.0000.00716.39
7.4.280.0000.00716.31
7.4.270.0030.00316.37
7.4.260.0060.00016.37
7.4.250.0030.00616.31
7.4.240.0040.00316.33
7.4.230.0000.00716.11
7.4.220.0210.00316.41
7.4.210.0120.00316.48
7.4.200.0000.00716.49
7.4.160.0050.01116.35
7.4.150.0120.00617.40
7.4.140.0050.01217.86
7.4.130.0070.00916.35
7.4.120.0060.01016.46
7.4.110.0040.01416.14
7.4.100.0120.00616.39
7.4.90.0090.00616.44
7.4.80.0160.00819.39
7.4.70.0120.00816.20
7.4.60.0030.01416.58
7.4.50.0040.00416.09
7.4.40.0100.01016.35
7.4.30.0090.01216.47
7.3.330.0070.00013.14
7.3.320.0000.00513.20
7.3.310.0040.00415.95
7.3.300.0030.00315.97
7.3.290.0160.00316.12
7.3.280.0080.00816.16
7.3.270.0130.00317.40
7.3.260.0110.00716.45
7.3.250.0120.00416.19
7.3.240.0110.00516.12
7.3.230.0120.00616.39
7.3.210.0060.01216.06
7.3.200.0140.00919.39
7.3.190.0180.00316.12
7.3.180.0030.01716.26
7.3.170.0090.01216.27
7.3.160.0130.00316.11
7.2.330.0150.00616.23
7.2.320.0080.01116.28
7.2.310.0120.01216.61
7.2.300.0100.00716.37
7.2.290.0150.00616.54
5.4.320.0050.03712.45
5.4.310.0100.03712.45
5.4.300.0060.03712.45
5.4.290.0050.04112.45
5.4.280.0070.03512.34
5.4.270.0050.03812.35
5.4.260.0050.03912.35
5.4.250.0050.03912.34
5.4.240.0050.03612.35
5.4.230.0070.03812.34
5.4.220.0080.04112.34
5.4.210.0040.03812.34
5.4.200.0080.03812.34
5.4.190.0100.03912.33
5.4.180.0050.04512.34
5.4.170.0080.04312.35
5.4.160.0070.03912.34
5.4.150.0070.03912.34
5.4.140.0070.03512.02
5.4.130.0050.03812.01
5.4.120.0080.03611.97
5.4.110.0040.04111.96
5.4.100.0050.03611.97
5.4.90.0070.03711.96
5.4.80.0050.04311.96
5.4.70.0080.04111.96
5.4.60.0050.04111.96
5.4.50.0040.03911.96
5.4.40.0040.03811.95
5.4.30.0040.03811.95
5.4.20.0080.03811.95
5.4.10.0090.03311.95
5.4.00.0050.03611.44

preferences:
35.34 ms | 401 KiB | 5 Q