3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = new class { public function bar(int $a) { print $a . PHP_EOL; } }; $res = $f?->bar(5); $c = $f?->bar(?); $c(4); $g = null; $d = $g?->bar(?); $d?->__invoke(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.0.30.0240.01216.86
8.0.20.0200.01216.82
8.0.10.0240.00516.91
8.0.00.0270.00516.83
7.4.160.0140.01116.40
7.4.150.0180.01016.36
7.4.140.0190.00816.35
7.4.130.0210.00616.34
7.4.120.0340.00816.30
7.4.110.0280.00316.29
7.4.100.0200.00916.23
7.4.90.0180.00716.18
7.4.80.0230.00716.21
7.4.70.0180.00716.28
7.4.60.0190.00616.00
7.4.50.0190.00616.18
7.4.40.0140.01016.30
7.4.30.0280.00316.30
7.4.20.0190.00515.99
7.4.10.0170.00816.27
7.4.00.0170.00716.31
7.3.280.0170.00916.11
7.3.270.0150.01016.23
7.3.260.0190.00816.10
7.3.250.0160.00816.12
7.3.240.0220.00416.14
7.3.230.0180.00616.14
7.3.220.0130.01316.04
7.3.210.0170.00916.05
7.3.200.0150.01016.07
7.3.190.0210.00416.13
7.3.180.0120.01216.16
7.3.170.0120.02016.05
7.3.160.0160.01015.99
7.3.150.0220.00316.02
7.3.140.0190.00716.09
7.3.130.0170.00716.07
7.3.120.0210.00816.03
7.3.110.0190.01516.00
7.3.100.0270.00316.04
7.3.90.0250.00816.30
7.3.80.0320.00416.12
7.3.70.0190.00916.14
7.3.60.0270.00416.14
7.3.50.0280.01116.18
7.3.40.0270.00316.17
7.3.30.0200.01616.18
7.3.20.0200.00716.20
7.3.10.0270.00716.12
7.3.00.0230.00416.21