3v4l.org

run code in 300+ PHP versions simultaneously
<?php function &get_ref($_): string { static $a = "f"; return $a; } function &get_ref2(): string { $c = get_ref(...); return $c("foo"); } echo get_ref2();

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.5.10.0160.00416.82
8.5.00.0120.00822.86
8.4.160.0100.01223.76
8.4.150.0070.00616.89
8.4.140.0130.00817.73
8.4.130.0070.01119.49
8.4.120.0060.00522.44
8.4.110.0040.00517.55
8.4.100.0150.00617.69
8.4.90.0120.01017.63
8.3.280.0010.00014.05
8.3.270.0070.01116.50
8.3.260.0110.00516.30
8.3.250.0110.00717.29
8.3.240.0070.00218.21
8.3.230.0090.01016.52
8.3.180.0120.00716.47
8.3.50.0100.01016.46
8.2.290.0130.00716.73

preferences:
48.06 ms | 403 KiB | 5 Q