3v4l.org

run code in 300+ PHP versions simultaneously
<?php $argv = [1,2,3]; $_POST = [1,2,3]; function foo(?array $argv = null) { if ($argv === null) { global $argv; } print_r($argv); } foo(); foo([4,5,6]);

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.30.0090.01019.69
8.5.20.0080.01017.43
8.5.10.0350.00816.49
8.5.00.0060.00318.13
8.4.180.0150.00719.67
8.4.170.0120.00922.06
8.4.160.0150.00622.43
8.4.90.0110.00921.52
8.3.300.0110.00922.64
8.3.290.0130.01018.38
8.3.180.0150.00518.42
8.3.50.0160.00518.41
7.2.170.0210.01016.66

preferences:
54.62 ms | 544 KiB | 5 Q