3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string="hello rajesh"; //$str=strlen($string); $str = explode(' ',$string); //var_dump($str); //$len = count($str); var_dump array_reverse_keys($str);

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.00.0100.08020.16
5.6.160.0070.04020.54
5.6.150.0130.07318.14
5.6.140.0070.07718.18
5.6.130.0030.05318.18
5.6.120.0070.05020.89
5.6.110.0100.03321.00
5.6.100.0030.05020.97
5.6.90.0130.03720.95
5.6.80.0100.08020.53
5.5.300.0130.06017.98
5.5.290.0070.08717.97
5.5.280.0100.08020.77
5.5.270.0070.06320.71
5.5.260.0100.06720.79
5.5.250.0030.05020.77
5.5.240.0170.07320.23

preferences:
127.58 ms | 1398 KiB | 7 Q