3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function bar() : static { return new static(); } } class Baz extends Foo {} var_dump(Foo::bar()); var_dump(Baz::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.30.0090.00817.33
8.5.20.0090.00820.21
8.5.10.0110.00620.21
8.5.00.0130.00920.04
8.4.180.0130.00822.00
8.4.170.0110.01023.67
8.4.160.0130.00723.86
8.4.150.0070.00516.95
8.4.140.0180.00617.62
8.4.130.0130.00720.52
8.4.120.0110.00920.41
8.4.110.0080.00420.66
8.4.100.0120.00917.92
8.4.90.0040.00620.54
8.4.80.0120.00818.15
8.4.70.0070.01418.11
8.4.60.0140.00618.63
8.4.50.0120.00717.90
8.4.40.0120.00817.62
8.4.30.0100.00717.78
8.4.20.0100.00017.99
8.4.10.0130.00717.96
8.3.300.0120.00719.22
8.3.290.0100.01018.62
8.3.280.0130.00918.43
8.3.270.0110.00916.44
8.3.260.0140.00716.64
8.3.250.0120.00718.70
8.3.240.0110.00916.74
8.3.230.0120.00616.78
8.3.220.0100.00917.08
8.3.210.0100.00416.61
8.3.200.0120.00716.42
8.3.190.0120.00716.45
8.3.180.0060.00816.66
8.3.170.0110.00716.41
8.3.160.0110.00716.73
8.3.150.0110.00717.23
8.3.140.0060.00916.73
8.3.130.0080.00018.77
8.3.120.0030.00720.73
8.3.110.0000.00816.75
8.3.100.0060.00324.06
8.3.90.0000.00826.77
8.3.80.0060.00318.30
8.3.70.0070.00716.63
8.3.60.0120.00618.52
8.3.50.0040.01521.98
8.3.40.0090.00918.66
8.3.30.0100.00318.59
8.3.20.0030.00520.29
8.3.10.0090.00020.31
8.3.00.0080.00020.46
8.2.300.0130.01218.19
8.2.290.0110.00720.35
8.2.280.0060.00218.23
8.2.270.0130.00616.66
8.2.260.0090.00618.81
8.2.250.0040.00416.71
8.2.240.0030.00518.77
8.2.230.0040.00420.94
8.2.220.0080.00837.54
8.2.210.0030.00626.77
8.2.200.0040.00818.41
8.2.190.0110.00618.29
8.2.180.0080.00616.63
8.2.170.0130.00722.96
8.2.160.0060.00820.26
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0050.00319.00
8.2.120.0070.00726.35
8.2.110.0060.00322.04
8.2.100.0070.00318.60
8.1.340.0110.01119.56
8.1.330.0070.01216.80
8.1.320.0130.00716.17
8.1.310.0110.00418.30
8.1.300.0060.00316.46
8.1.290.0090.00030.84
8.1.280.0140.00325.92
8.1.270.0070.01124.02
8.1.260.0000.00728.09
8.1.250.0040.00428.09
8.1.240.0050.00518.57
8.1.230.0030.00718.43
7.0.30.0330.07020.23
7.0.20.0270.06720.07
7.0.10.0070.04320.03
7.0.00.0130.05720.24
5.6.180.0200.08720.34
5.6.170.0300.03720.52
5.6.160.0100.08020.55
5.6.150.0070.03718.21
5.6.140.0170.07018.18
5.6.130.0130.08018.18
5.6.120.0100.07721.12
5.6.110.0070.07721.03
5.6.100.0070.08320.98
5.6.90.0070.05021.04
5.6.80.0100.07320.38
5.5.320.0430.06320.38
5.5.310.0370.05320.34
5.5.300.0070.05017.96
5.5.290.0030.06317.92
5.5.280.0030.07720.80
5.5.270.0070.03720.84
5.5.260.0070.08720.86
5.5.250.0130.07720.77
5.5.240.0330.06320.16

preferences:
67.18 ms | 961 KiB | 5 Q