3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Something { public function __construct(private string $name) {} public function equals(static $something): bool { return $this->name === $something->name; } }

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.1.10.0070.00517.34
8.1.00.0070.00517.26
8.0.140.0060.00416.72
8.0.130.0080.00216.79
8.0.120.0070.00416.83
8.0.110.0070.00416.77
8.0.100.0080.00316.79
8.0.90.0070.00516.70
8.0.80.0080.00416.79
8.0.70.0080.00416.77
8.0.60.0080.00416.78
8.0.50.0080.00416.78
8.0.30.0060.00616.83
8.0.20.0080.00416.84
8.0.10.0050.00716.88
7.4.270.0080.00616.36
7.4.260.0090.00416.36
7.4.250.0070.00616.34
7.4.240.0060.00616.30
7.4.230.0070.00516.32
7.4.220.0050.00616.35
7.4.210.0060.00516.33
7.4.200.0080.00316.33
7.4.190.0060.00516.40
7.4.180.0060.00516.40
7.4.160.0070.00416.35
7.4.150.0080.00416.30
7.4.140.0070.00416.28
7.4.130.0060.00516.20
7.4.120.0050.00616.18
7.4.110.0070.00516.17
7.4.100.0080.00416.31
7.4.90.0060.00516.22
7.4.80.0070.00416.15
7.4.70.0080.00316.16
7.4.60.0060.00516.20
7.4.50.0070.00316.10
7.4.40.0050.00416.13
7.4.30.0040.00616.15
7.4.20.0070.00216.15
7.4.10.0070.00316.17
7.4.00.0060.00416.15

preferences:
15.12 ms | 451 KiB | 5 Q