3v4l.org

run code in 500+ PHP versions simultaneously
<?php class x { function __construct($i = 0) { echo __METHOD__.PHP_EOL;} function __invoke() { echo __METHOD__.PHP_EOL;} } $x = new x; $y = new $x()(); // identical to //$y = (new $x(0)) () var_dump($y); // NULL ?>

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.30.0460.01117.33
8.4.20.0280.00717.73
8.4.10.0210.00417.48
8.3.160.0200.00316.50
8.3.150.0180.00316.82
8.3.140.0230.01016.40
8.3.130.0220.00616.43
8.3.120.0160.00516.33
8.3.110.0120.00816.42
8.3.100.0160.00716.53
8.3.90.0180.00516.33
8.3.80.0220.00016.59
8.3.70.0190.00316.62
8.3.60.0180.00416.42
8.3.50.0180.00416.64
8.3.40.0120.00617.37
8.3.30.0140.00517.16
8.3.20.0140.00517.48
8.3.10.0090.00917.52
8.3.00.0100.00017.38
8.2.270.0190.00016.32
8.2.260.0140.00516.14
8.2.250.0060.01216.34
8.2.240.0110.00716.14
8.2.230.0140.00416.18
8.2.220.0210.00016.24
8.2.210.0230.00516.24
8.2.200.0240.00016.55
8.2.190.0270.00916.41
8.2.180.0170.00416.57
8.2.170.0240.00417.34
8.2.160.0210.00417.29
8.2.150.0190.00617.32
8.2.140.0140.00617.38
8.2.130.0160.00317.16
8.2.120.0210.00017.35
8.2.110.0300.00017.34
8.2.100.0180.00017.41
8.2.90.0340.00317.10
8.2.80.0290.00717.45
8.2.70.0270.00517.18
8.2.60.0200.00016.81
8.2.50.0150.00317.01
8.2.40.0200.00317.21
8.2.30.0100.01017.26
8.2.20.0210.00317.16
8.2.10.0230.00417.30
8.2.00.0120.00817.13

preferences:
60.44 ms | 683 KiB | 4 Q