3v4l.org

run code in 300+ PHP versions simultaneously
<?php var x=array(1,2,3,4); var_dump(array_search(1,x));

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)
7.0.20.0170.05320.23
7.0.10.0100.08720.20
7.0.00.0070.04320.24
5.6.170.0230.06720.62
5.6.160.0030.07720.71
5.6.150.0070.06718.15
5.6.140.0100.06018.27
5.6.130.0070.05318.18
5.6.120.0200.05721.11
5.6.110.0030.06021.11
5.6.100.0000.09720.88
5.6.90.0200.06720.96
5.6.80.0130.06720.53
5.5.310.0170.04320.34
5.5.300.0100.04318.08
5.5.290.0070.05018.09
5.5.280.0030.08720.68
5.5.270.0030.05320.68
5.5.260.0130.08320.89
5.5.250.0200.06720.58
5.5.240.0030.08020.18

preferences:
141.09 ms | 1394 KiB | 7 Q