3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { public function __construct(private int $y) {} public function do(int $x) { return $this->y + $x; } } $c = new C(2); $fn = $c->do(...); print $fn(3);

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.2.40.0090.00318.55
8.2.10.0040.00417.52
8.2.00.0030.00517.52
8.1.140.0040.00417.38
8.1.130.0000.00817.45
8.1.120.0040.00417.39
8.1.110.0040.00417.38
8.1.100.0040.00417.50
8.1.90.0000.00717.37
8.1.80.0080.00017.45
8.1.70.0040.00417.41
8.1.60.0000.00817.64
8.1.50.0040.00417.62
8.1.40.0000.00817.63
8.1.30.0030.00617.64
8.1.20.0000.00817.61
8.1.10.0070.00017.51
8.1.00.0060.00317.51
8.0.270.0040.00416.77
8.0.260.0000.00816.79
8.0.250.0070.00016.71
8.0.240.0030.00316.90
8.0.230.0000.00716.95
8.0.220.0040.00416.87
8.0.210.0070.00016.84
8.0.200.0040.00418.73
8.0.190.0000.00816.78
8.0.180.0000.00716.90
8.0.170.0000.00816.72
8.0.160.0070.00016.84
8.0.150.0000.00716.66
8.0.140.0070.00016.72
8.0.130.0050.00216.70
8.0.120.0000.00716.71
8.0.110.0000.00816.68
8.0.100.0040.00416.68
8.0.90.0040.00416.76
8.0.80.0030.00316.78
8.0.70.0080.00016.71
8.0.60.0040.00416.68
8.0.50.0070.00016.69
8.0.30.0000.00816.79
8.0.20.0080.00016.89
8.0.10.0000.00816.80

preferences:
144.98 ms | 1398 KiB | 7 Q