3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Dog { public function __construct(protected bool $woof){} public function __isset(string $name) { if ($name === 'woof') { return $this->woof; } return FALSE; } public function __get(string $name) { if ($name === 'woof') { return $this->woof; } return FALSE; } } $f = new Dog(TRUE); var_export(empty($f->woof)); echo PHP_EOL; var_export(isset($f->woof));

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.20.0310.01217.38
8.4.10.0110.01117.45
8.3.150.0150.00316.57
8.3.140.0200.00016.38
8.3.130.0160.00216.35
8.3.120.0200.00016.36
8.3.110.0150.00416.28
8.3.100.0170.00316.52
8.3.90.0150.00616.36
8.3.80.0120.00916.48
8.3.70.0170.00315.98
8.3.60.0170.00316.61
8.3.50.0170.00316.24
8.3.40.0090.00917.39
8.3.30.0090.00617.31
8.3.20.0170.00017.34
8.3.10.0140.00317.08
8.3.00.0060.00617.13
8.2.270.0000.00816.38
8.2.260.0130.00416.37
8.2.250.0100.00716.74
8.2.240.0100.00716.43
8.2.230.0120.00616.49
8.2.220.0180.00016.73
8.2.210.0070.01116.48
8.2.200.0130.00416.67
8.2.190.0110.00616.38
8.2.180.0130.00516.38
8.2.170.0110.01117.56
8.2.160.0210.00017.45
8.2.150.0110.00817.35
8.2.140.0130.00417.10
8.2.130.0120.00617.39
8.2.120.0160.00217.42
8.2.110.0120.00817.29
8.2.100.0150.00217.41
8.2.90.0140.00317.38
8.2.80.0170.00017.11
8.2.70.0120.00817.38
8.2.60.0130.00316.99
8.2.50.0180.00017.26
8.2.40.0180.00017.37
8.2.30.0100.00717.27
8.2.20.0170.00017.21
8.2.10.0170.00017.03
8.2.00.0080.00817.06

preferences:
33.05 ms | 403 KiB | 5 Q