3v4l.org

run code in 300+ PHP versions simultaneously
<?php // https://github.com/php/php-src/issues/18318 $foo = new CatchMeIfYouCan(); var_dump($foo->bar); final class CatchMeIfYouCan { private(set) int $bar { get => $this->bar ??= $this->fooBar(); } public function fooBar(): int { isset($this->bar); } }

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.60.0320.01540.21
8.4.50.0300.01038.33
8.4.40.0300.01338.30
8.4.30.0330.01138.20
8.4.20.0330.01138.13
8.4.10.0340.01137.88
8.3.200.0060.00416.87
8.3.190.0150.00516.46
8.3.180.0160.00416.63
8.3.170.0210.00416.65
8.3.160.0200.00316.56
8.3.150.0200.00316.47
8.3.140.0200.00316.70
8.3.130.0160.00516.51
8.3.120.0150.00416.45
8.3.110.0160.00416.58
8.3.100.0160.00616.51
8.3.90.0180.00416.49
8.3.80.0190.00416.38
8.3.70.0190.00516.55
8.3.60.0170.00716.51
8.3.50.0170.00516.57
8.3.40.0160.00417.47
8.3.30.0170.00417.55
8.3.20.0170.00317.60
8.3.10.0160.00417.60
8.3.00.0070.00517.56
8.2.280.0140.00416.74
8.2.270.0170.00416.42
8.2.260.0140.00616.48
8.2.250.0140.00616.62
8.2.240.0150.00416.66
8.2.230.0130.00516.42
8.2.220.0150.00416.26
8.2.210.0140.00516.54
8.2.200.0150.00416.32
8.2.190.0160.00416.42
8.2.180.0150.00416.40
8.2.170.0150.00617.57
8.2.160.0160.00517.33
8.2.150.0150.00617.28
8.2.140.0170.00617.28
8.2.130.0170.00417.37
8.2.120.0160.00617.42
8.2.110.0170.00417.39
8.2.100.0160.00617.45
8.2.90.0160.00417.54
8.2.80.0170.00517.61
8.2.70.0170.00517.26
8.2.60.0160.00217.24
8.2.50.0170.00317.39
8.2.40.0170.00417.43
8.2.30.0170.00417.28
8.2.20.0160.00517.18
8.2.10.0170.00417.29
8.2.00.0150.00417.24

preferences:
144.05 ms | 995 KiB | 7 Q