3v4l.org

run code in 300+ PHP versions simultaneously
<?php function(string $test, int $test2) { print_r($test); print_r($test2); } function(1, 'test'); function('test', 1);

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)
5.6.150.0030.04018.18
5.6.140.0100.08018.18
5.6.130.0000.05318.15
5.6.120.0100.04721.02
5.6.110.0230.05721.01
5.6.100.0070.04720.96
5.6.90.0170.03721.11
5.6.80.0030.08320.39
5.5.300.0100.03317.95
5.5.290.0070.07017.98
5.5.280.0100.08320.88
5.5.270.0100.07720.96
5.5.260.0070.04020.77
5.5.250.0030.08020.69
5.5.240.0300.07020.26

preferences:
139.22 ms | 941 KiB | 8 Q