3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myArray [9314802498, 9314801890, 'MOSWAPELE ESTHER', 'BENNETH']; $myArray = array_merge(array_filter($myArray, function($key) {return $key % 2 == 0}, ARRAY_FILTER_USE_KEY), array_filter($myArray, function($key) {return $key % 2 == 1}, ARRAY_FILTER_USE_KEY)); var_dump($myArray);

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.0370.06320.21
7.0.10.0030.07720.25
7.0.00.0100.08320.23
5.6.170.0130.05720.62
5.6.160.0100.05020.44
5.6.150.0070.08318.15
5.6.140.0030.04318.17
5.6.130.0130.08318.27
5.6.120.0130.06720.96
5.6.110.0000.06021.00
5.6.100.0000.04721.11
5.6.90.0070.06321.09
5.6.80.0170.05320.41
5.5.310.0300.06720.34
5.5.300.0070.06317.98
5.5.290.0070.08018.08
5.5.280.0030.06020.80
5.5.270.0130.08020.86
5.5.260.0070.05720.86
5.5.250.0100.08020.57
5.5.240.0270.04720.03

preferences:
128.21 ms | 1398 KiB | 7 Q