3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function bar() : static { return self; } } class Foo2 extends Foo {} var_dump(Foo2::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.60.0150.00616.88
8.3.50.0110.00921.91
8.3.40.0080.00618.84
8.3.30.0140.00018.54
8.3.20.0000.00720.21
8.3.10.0040.00420.53
8.3.00.0080.00020.42
8.2.180.0100.00716.63
8.2.170.0060.00922.96
8.2.160.0100.00319.24
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00419.24
8.2.120.0000.00826.35
8.2.110.0060.00322.11
8.2.100.0090.00018.85
8.1.280.0100.01025.92
8.1.270.0090.00023.78
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0100.00018.40
8.1.230.0030.00618.57
7.0.30.0230.06320.21
7.0.20.0170.04720.37
7.0.10.0070.08720.33
7.0.00.0100.08320.16
5.6.180.0270.04720.48
5.6.170.0270.04720.53
5.6.160.0070.04720.52
5.6.150.0100.03318.22
5.6.140.0070.08018.28
5.6.130.0030.05018.17
5.6.120.0070.07320.95
5.6.110.0070.08021.14
5.6.100.0070.08321.02
5.6.90.0000.04720.99
5.6.80.0030.05020.48
5.5.320.0270.03720.27
5.5.310.0330.04320.19
5.5.300.0030.05317.98
5.5.290.0130.07317.94
5.5.280.0030.06720.80
5.5.270.0170.06720.73
5.5.260.0070.07720.86
5.5.250.0030.04020.63
5.5.240.0030.07020.23

preferences:
41.21 ms | 401 KiB | 5 Q