3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { protected final const BLOP = 1; public function get() { return static::BLOP; } public function get2() { return self::BLOP; } } class B extends A { protected const BLOP = 2; } $o = new B(); var_dump($o->get(), $o->get2());

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)
7.0.70.0170.05319.90
7.0.60.0200.05719.98
7.0.50.0170.05320.37
7.0.40.0170.05320.31
7.0.30.0130.06320.22
7.0.20.0230.07720.33
7.0.10.0130.06320.18
7.0.00.0270.05720.19
5.6.220.0100.06020.62
5.6.210.0200.05020.60
5.6.200.0130.05721.14
5.6.190.0200.05321.07
5.6.180.0130.06021.07
5.6.170.0200.05721.06
5.6.160.0070.06721.09
5.6.150.0100.06021.07
5.6.140.0130.05721.17
5.6.130.0130.06321.04
5.6.120.0200.06721.14
5.6.110.0170.05721.07
5.6.100.0070.07021.01
5.6.90.0000.08321.05
5.6.80.0170.05320.41
5.6.70.0130.05720.45
5.6.60.0130.05320.43
5.6.50.0070.06320.52
5.6.40.0070.06320.55
5.6.30.0130.05320.53
5.6.20.0170.06720.38
5.6.10.0070.06020.43
5.6.00.0230.04720.43
5.5.360.0230.04720.46
5.5.350.0130.06020.46
5.5.340.0200.05020.83
5.5.330.0130.05720.93
5.5.320.0100.06020.92
5.5.310.0170.06020.88
5.5.300.0170.05320.93
5.5.290.0230.06720.85
5.5.280.0200.05020.79
5.5.270.0130.06020.91
5.5.260.0200.05720.87
5.5.250.0270.07020.73
5.5.240.0130.05720.36
5.5.230.0100.06020.15
5.5.220.0170.05320.15
5.5.210.0070.06320.23
5.5.200.0130.05720.29
5.5.190.0270.04320.30
5.5.180.0170.06320.31
5.5.160.0170.06020.25
5.5.150.0170.05020.30
5.5.140.0130.05720.23
5.5.130.0070.06020.26
5.5.120.0130.06320.28
5.5.110.0400.04020.29
5.5.100.0700.05020.23
5.5.90.0330.04720.00
5.5.80.0570.05020.10
5.5.70.0200.05320.06
5.5.60.0300.04020.15
5.5.50.1300.06320.19
5.5.40.0200.07020.07
5.5.30.0370.06020.18
5.5.20.0370.06320.11
5.5.10.0170.06320.19
5.5.00.0370.04320.05

preferences:
143.23 ms | 1394 KiB | 7 Q