3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I { public function foo(object $object = new stdClass): void; } class Foo implements I { private string $value = 'foo'; #[Override] public function foo(object $object = new self): never { die($object->value); } } (new Foo())->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.150.0080.00316.94
8.4.140.0370.00817.48
8.4.130.0320.01117.38
8.4.120.0380.00917.67
8.4.110.0370.00917.58
8.4.100.0360.01017.57
8.4.90.0390.01017.64
8.4.80.0380.00917.47
8.4.70.0380.01117.47
8.4.60.0390.01017.69
8.4.50.0400.00717.58
8.4.40.0380.01117.49
8.4.30.0400.01017.28
8.4.20.0400.01017.43
8.4.10.0430.00717.47
8.3.280.0020.00014.05
8.3.270.0350.01116.48
8.3.260.0340.01016.53
8.3.250.0330.01116.44
8.3.240.0360.00716.56
8.3.230.0350.00916.49
8.3.220.0340.01016.51
8.3.210.0360.00816.60
8.3.200.0370.00816.49
8.3.190.0370.00816.42
8.3.180.0330.01116.40
8.3.170.0370.00916.22
8.3.160.0390.00816.56
8.3.150.0400.00916.55
8.3.140.0360.01116.41
8.3.130.0310.01116.48
8.3.120.0350.00816.57
8.3.110.0320.01016.55
8.3.100.0390.00916.44
8.3.90.0370.01016.39
8.3.80.0390.00816.55
8.3.70.0360.01016.51
8.3.60.0370.01016.37
8.3.50.0360.01116.40
8.3.40.0390.00817.38
8.3.30.0320.00817.28
8.3.20.0300.00917.21
8.3.10.0330.01017.35
8.3.00.0290.00817.28
8.2.290.0300.01016.51
8.2.280.0290.00916.64
8.2.270.0300.01016.46
8.2.260.0340.00816.58
8.2.250.0290.01016.46
8.2.240.0310.00716.27
8.2.230.0290.00916.23
8.2.220.0310.00816.55
8.2.210.0290.01016.29
8.2.200.0310.00916.49
8.2.190.0320.00716.34
8.2.180.0300.00916.28
8.2.170.0300.00817.59
8.2.160.0270.00617.52
8.2.150.0340.00717.38
8.2.140.0340.00717.26
8.2.130.0320.00817.42
8.2.120.0340.00717.40
8.2.110.0320.00817.38
8.2.100.0290.01117.46
8.2.90.0340.00817.45
8.2.80.0290.01017.27
8.2.70.0320.00917.51
8.2.60.0310.00917.36
8.2.50.0340.00917.45
8.2.40.0330.00617.38
8.2.30.0330.00817.50
8.2.20.0320.00917.44
8.2.10.0360.00817.36
8.2.00.0370.00717.38

preferences:
39.75 ms | 403 KiB | 5 Q