3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class ParentClass { public function __get(string $name) { echo "__get($name) was called\n"; } } class ChildClass extends ParentClass { public $foo { get => parent::$foo::get(); } } (new ParentClass)->foo; (new ChildClass)->foo;

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.30.0220.01017.68
8.4.20.0460.00017.69
8.4.10.0390.00917.71
8.3.160.0380.00716.75
8.3.150.0320.00616.34
8.3.140.0400.00616.69
8.3.130.0230.01616.57
8.3.120.0220.01116.61
8.3.110.0320.00616.58
8.3.100.0140.00716.68
8.3.90.0160.00416.73
8.3.80.0180.00316.61
8.3.70.0430.00416.28
8.3.60.0390.00916.70
8.3.50.0380.00716.33
8.3.40.0290.01017.52
8.3.30.0390.00017.56
8.3.20.0320.00717.57
8.3.10.0260.01017.63
8.3.00.0100.01317.72
8.2.270.0250.01216.79
8.2.260.0320.00716.71
8.2.250.0320.00616.71
8.2.240.0280.01116.40
8.2.230.0330.00616.43
8.2.220.0320.00716.61
8.2.210.0280.01016.33
8.2.200.0270.01316.65
8.2.190.0350.00416.18
8.2.180.0410.00316.34
8.2.170.0400.00817.67
8.2.160.0310.00917.40
8.2.150.0250.01517.34
8.2.140.0320.00717.48
8.2.130.0370.00417.41
8.2.120.0340.00717.43
8.2.110.0310.00917.33
8.2.100.0300.00917.35
8.2.90.0330.00617.45
8.2.80.0290.01317.52
8.2.70.0290.00517.41
8.2.60.0300.01017.44
8.2.50.0310.00917.18
8.2.40.0290.00717.27
8.2.30.0260.01017.23
8.2.20.0270.01217.26
8.2.10.0360.00317.31
8.2.00.0310.00517.58

preferences:
150.85 ms | 997 KiB | 7 Q