3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace one; class DemoFile { protected bool $test = false; public function init(): void { $this->test = true; } } namespace two; class FirstChild extends one\DemoFile { } namespace two; class SecondChild extends FirstChild { protected bool $foo = false; public function init(): void { parent::init(); $this->foo = true; } }

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.130.0030.00618.38
8.3.120.0060.00318.30
8.3.110.0300.01116.31
8.3.100.0310.01416.64
8.3.90.0350.00616.78
8.3.80.0470.00416.38
8.3.70.0510.00316.13
8.3.60.0460.00316.34
8.3.50.0380.01016.38
8.3.40.0280.01117.25
8.3.30.0350.01317.25
8.3.20.0410.00317.25
8.3.10.0290.01117.25
8.3.00.0220.00717.50
8.2.250.0000.00816.59
8.2.240.0060.01018.85
8.2.230.0330.00616.52
8.2.220.0250.01316.36
8.2.210.0250.01316.26
8.2.200.0360.00316.47
8.2.190.0290.01316.23
8.2.180.0310.00716.62
8.2.170.0360.00417.50
8.2.160.0270.00717.38
8.2.150.0270.00217.24
8.2.140.0160.00417.38
8.2.130.0330.00317.38
8.2.120.0320.00617.38
8.2.110.0330.00417.36
8.2.100.0300.00017.25
8.2.90.0270.00917.60
8.2.80.0290.00717.13
8.2.70.0370.00317.25
8.2.60.0300.01217.12
8.2.50.0330.01017.38
8.2.40.0340.00717.00
8.2.30.0450.00017.25
8.2.20.0390.00017.50
8.2.10.0240.01417.13
8.2.00.0300.01217.25
8.1.300.0160.00019.66
8.1.290.0370.00616.11
8.1.280.0330.00715.88
8.1.270.0260.01117.07
8.1.260.0390.00917.12
8.1.250.0370.01017.13
8.1.240.0330.00616.98
8.1.230.0320.00717.10
8.1.220.0300.01017.23
8.1.210.0370.01016.98
8.1.200.0190.00817.13
8.1.190.0170.00816.98
8.1.180.0280.00317.12
8.1.170.0280.00617.13
8.1.160.0280.00717.25
8.1.150.0390.00017.00
8.1.140.0280.00917.13
8.1.130.0280.01116.97
8.1.120.0250.01517.25
8.1.110.0270.01217.22
8.1.100.0250.01417.13
8.1.90.0200.01617.35
8.1.80.0230.00317.22
8.1.70.0340.00317.34
8.1.60.0350.00617.25
8.1.50.0360.00417.00
8.1.40.0170.00317.34
8.1.30.0270.00717.50
8.1.20.0240.00617.09
8.1.10.0390.00017.25
8.1.00.0390.00417.13

preferences:
26.73 ms | 403 KiB | 5 Q