3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected static ?Foo $instance = null; public static function __callStatic($method, $args) { $instance = self::$instance ?? self::$instance = new static(); return $instance->__call($method, $args); } public function __call($method, $args) { if (method_exists($this, $method)) { return $instance->$method(...$args); } return $this; } protected function bar() { echo __METHOD__ . '<br />'; return $this; } protected function baz() { echo __METHOD__ . '<br />'; return $this; } } Foo::bar()->baz(); (new Foo())->bar()->baz();

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.4.120.0100.00722.71
8.4.110.0150.00618.86
8.4.100.0130.00717.98
8.4.90.0070.00618.86
8.4.80.0070.00219.79
8.4.70.0070.00718.32
8.4.60.0100.01118.82
8.4.50.0100.01120.36
8.4.40.0120.00917.91
8.4.30.0130.00718.70
8.4.20.0030.01618.00
8.4.10.0060.00319.61
8.3.250.0120.00718.86
8.3.240.0130.00616.72
8.3.230.0110.00616.80
8.3.220.0110.00716.68
8.3.210.0130.00518.58
8.3.200.0090.01116.59
8.3.190.0110.00717.10
8.3.180.0110.00816.57
8.3.170.0090.00920.88
8.3.160.0030.01717.19
8.3.150.0110.00717.14
8.3.140.0120.00619.03
8.3.130.0000.00818.52
8.3.120.0060.01219.23
8.3.110.0030.00616.73
8.3.100.0000.00924.06
8.3.90.0030.00626.77
8.3.80.0060.00318.31
8.3.70.0000.01518.56
8.3.60.0120.00316.59
8.3.50.0120.00916.61
8.3.40.0060.00921.90
8.3.30.0230.00922.96
8.3.20.0140.00323.43
8.3.10.0130.00523.43
8.3.00.0100.01022.96
8.2.290.0120.00620.58
8.2.280.0110.00818.58
8.2.270.0100.01019.09
8.2.260.0040.00416.87
8.2.250.0110.00718.55
8.2.240.0060.00317.27
8.2.230.0040.00420.94
8.2.220.0070.01037.54
8.2.210.0030.00526.77
8.2.200.0030.00618.41
8.2.190.0070.00718.29
8.2.180.0150.00316.47
8.2.170.0060.00918.85
8.2.160.0100.00722.96
8.2.150.0180.00322.96
8.2.140.0060.01122.96
8.2.130.0080.00922.96
8.2.120.0090.00922.96
8.2.110.0120.00422.96
8.2.100.0140.00822.96
8.2.90.0140.00622.96
8.2.80.0130.00622.96
8.2.70.0120.00822.96
8.2.60.0110.00822.96
8.2.50.0150.00622.96
8.2.40.0080.01022.96
8.2.30.0080.00922.96
8.2.20.0120.00722.96
8.2.10.0100.00722.96
8.2.00.0180.00622.96
8.1.330.0120.00619.99
8.1.320.0090.01116.09
8.1.310.0070.00018.32
8.1.300.0000.01016.16
8.1.290.0040.00718.88
8.1.280.0180.00025.92
8.1.270.0080.00823.20
8.1.260.0070.00923.19
8.1.250.0070.01023.20
8.1.240.0150.00622.96
8.1.230.0130.01022.96
8.1.220.0120.00522.96
8.1.210.0100.00822.96
8.1.200.0120.00922.96
8.1.190.0170.00722.96
8.1.180.0120.00922.96
8.1.170.0140.01022.96
8.1.160.0120.00822.96
8.1.150.0220.00322.96
8.1.140.0170.00722.96
8.1.130.0100.00722.96
8.1.120.0120.00922.96
8.1.110.0200.00422.96
8.1.100.0140.00622.96
8.1.90.0160.00622.96
8.1.80.0150.00722.96
8.1.70.0130.00622.96
8.1.60.0150.00822.96
8.1.50.0160.00722.96
8.1.40.0190.00522.96
8.1.30.0140.00322.96
8.1.20.0130.00922.96
8.1.10.0210.00222.96
8.1.00.0190.00722.96

preferences:
27.35 ms | 403 KiB | 5 Q