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; } } $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.0180.00017.61
8.4.10.0110.00717.28
8.3.150.0140.00316.35
8.3.140.0190.00316.38
8.3.130.0140.00516.48
8.3.120.0140.00416.32
8.3.110.0180.00016.48
8.3.100.0180.00316.48
8.3.90.0140.00716.65
8.3.80.0150.00616.58
8.3.70.0170.00316.36
8.3.60.0200.00016.54
8.3.50.0160.00416.34
8.3.40.0160.00317.25
8.3.30.0110.00617.50
8.3.20.0150.00417.19
8.3.10.0190.00017.41
8.3.00.0060.00617.51
8.2.270.0030.00616.63
8.2.260.0170.00016.59
8.2.250.0130.00716.62
8.2.240.0060.01116.14
8.2.230.0140.00316.22
8.2.220.0150.00316.45
8.2.210.0150.00516.68
8.2.200.0140.00516.82
8.2.190.0130.00716.23
8.2.180.0190.00016.39
8.2.170.0150.00817.41
8.2.160.0150.00517.63
8.2.150.0130.00417.43
8.2.140.0130.00617.34
8.2.130.0240.00017.27
8.2.120.0170.00017.46
8.2.110.0180.00017.48
8.2.100.0170.00017.62
8.2.90.0120.00617.46
8.2.80.0170.00017.45
8.2.70.0090.00917.31
8.2.60.0180.00017.27
8.2.50.0140.00217.12
8.2.40.0100.00717.44
8.2.30.0120.00417.31
8.2.20.0120.00417.14
8.2.10.0100.00617.29
8.2.00.0120.00517.09

preferences:
25.37 ms | 403 KiB | 5 Q