3v4l.org

run code in 300+ PHP versions simultaneously
<?php function func($c, $d) { $result = array_search($d, $c); if (result !== false) { return $result; } } $c=(1,2,4,8,18,20,33,66,99); echo func($c, 19);

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.160.0100.07020.48
5.6.150.0030.04318.25
5.6.140.0030.05018.14
5.6.130.0100.06318.11
5.6.120.0070.08721.13
5.6.110.0100.07321.05
5.6.100.0170.06721.01
5.6.90.0100.08720.98
5.6.80.0170.06720.54
5.5.300.0030.04017.92
5.5.290.0100.08317.96
5.5.280.0070.09020.80
5.5.270.0070.09020.97
5.5.260.0000.05320.89
5.5.250.0070.08320.69
5.5.240.0170.07720.19

preferences:
144.71 ms | 1398 KiB | 7 Q