3v4l.org

run code in 500+ PHP versions simultaneously
<?php final class KeepSelfClassStaticCall { public function run() { return self::class::sampleClass(); } private function sampleClass() { return 'very creative'; } } $obj = new KeepSelfClassStaticCall(); var_dump($obj->run());

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.70.0300.00916.71
8.5.60.0310.00716.65
8.5.50.0320.00716.49
8.5.40.0290.00716.49
8.5.30.0320.00716.56
8.5.20.0310.00716.58
8.5.10.0310.00916.47
8.5.00.0130.00816.60
8.4.220.0330.00819.40
8.4.210.0330.00819.41
8.4.200.0300.01119.67
8.4.190.0320.00919.47
8.4.180.0300.01019.50
8.4.170.0290.01019.56
8.4.160.0280.01019.57
8.4.150.0290.01019.49
8.4.140.0290.00817.50
8.4.130.0250.00717.55
8.4.120.0270.00717.68
8.4.110.0330.00817.81
8.4.100.0330.00717.71
8.4.90.0320.00917.55
8.4.80.0330.00817.64
8.4.70.0310.00817.63
8.4.60.0300.00917.59
8.4.50.0320.00817.91
8.4.40.0320.00817.43
8.4.30.0340.00817.51
8.4.20.0310.00817.61
8.4.10.0300.00717.49
8.3.310.0320.00918.16
8.3.300.0290.00818.14
8.3.290.0270.00718.16
8.3.280.0280.00818.17
8.3.270.0290.00716.61
8.3.260.0310.00716.56
8.3.250.0320.00616.50
8.3.240.0290.00816.48
8.3.230.0260.00816.53
8.3.220.0290.00716.53
8.3.210.0290.00816.70
8.3.200.0310.00716.53
8.3.190.0300.00716.50
8.3.180.0280.00716.54
8.3.170.0320.00716.50
8.3.160.0280.00616.56
8.3.150.0290.00616.46
8.3.140.0270.00716.52
8.3.130.0280.00616.55
8.3.120.0240.00716.46
8.3.110.0250.00816.52
8.3.100.0320.00716.51
8.3.90.0310.00716.51
8.3.80.0270.00816.42
8.3.70.0300.00816.48
8.3.60.0290.00816.60
8.3.50.0280.00716.62
8.3.40.0300.00717.76
8.3.30.0240.00817.66
8.3.20.0230.00917.78
8.3.10.0260.00717.71
8.3.00.0230.00717.70
8.2.310.0410.00717.67

preferences:
59.06 ms | 747 KiB | 5 Q