3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function bar() : static { return new static(); } } var_dump(Foo::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.5.00.0160.00519.98
8.4.150.0030.00014.05
8.4.140.0120.01017.71
8.4.130.0100.01020.42
8.4.120.0100.00920.63
8.4.110.0110.00918.71
8.4.100.0140.00620.34
8.4.90.0100.00722.50
8.4.80.0120.00720.41
8.4.70.0040.00318.29
8.4.60.0070.00118.79
8.4.50.0030.00518.61
8.4.40.0160.00317.58
8.4.30.0100.01017.71
8.4.20.0120.00918.05
8.4.10.0050.00517.90
8.3.280.0100.01118.51
8.3.270.0120.00916.50
8.3.260.0050.00316.52
8.3.250.0120.00518.98
8.3.240.0110.00516.54
8.3.230.0110.00816.80
8.3.220.0110.00419.05
8.3.210.0050.00316.58
8.3.200.0050.00416.47
8.3.190.0120.00617.07
8.3.180.0050.00316.97
8.3.170.0000.01919.14
8.3.160.0120.00617.00
8.3.150.0070.01117.07
8.3.140.0060.01216.65
8.3.130.0060.00318.48
8.3.120.0060.00320.65
8.3.110.0070.00320.94
8.3.100.0030.00616.77
8.3.90.0050.00326.77
8.3.80.0000.00818.43
8.3.70.0100.01016.62
8.3.60.0070.01416.75
8.3.50.0120.00622.06
8.3.40.0140.00418.66
8.3.30.0070.01018.54
8.3.20.0040.00420.07
8.3.10.0080.00020.54
8.3.00.0030.00520.57
8.2.290.0090.00820.25
8.2.280.0120.00720.31
8.2.270.0080.00017.07
8.2.260.0040.00416.54
8.2.250.0090.00018.52
8.2.240.0040.00416.93
8.2.230.0080.00322.58
8.2.220.0030.00624.06
8.2.210.0070.01426.77
8.2.200.0060.00318.46
8.2.190.0070.01416.63
8.2.180.0090.00916.63
8.2.170.0000.01422.96
8.2.160.0110.00420.47
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0080.00019.77
8.2.110.0070.00322.20
8.2.100.0030.00618.72
8.1.330.0090.01021.91
8.1.320.0110.00818.05
8.1.310.0000.00816.59
8.1.300.0070.01020.24
8.1.290.0060.00318.88
8.1.280.0110.00725.92
8.1.270.0040.01123.87
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0030.01018.28
8.1.230.0030.00618.50
7.0.30.0200.04720.21
7.0.20.0300.07720.12
7.0.10.0100.05320.15
7.0.00.0100.07320.20
5.6.180.0130.06020.77
5.6.170.0230.07320.48
5.6.160.0100.08320.48
5.6.150.0070.06018.25
5.6.140.0030.04718.28
5.6.130.0070.03718.16
5.6.120.0200.07320.99
5.6.110.0070.09320.99
5.6.100.0170.07721.11
5.6.90.0070.04021.02
5.6.80.0130.07320.37
5.5.320.0570.05320.25
5.5.310.0130.05020.32
5.5.300.0170.04017.97
5.5.290.0100.04318.01
5.5.280.0170.06320.66
5.5.270.0030.08720.79
5.5.260.0130.06720.77
5.5.250.0030.07720.68
5.5.240.0200.07720.37

preferences:
36.37 ms | 403 KiB | 5 Q