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.0300.05720.10
7.0.10.0100.08720.23
7.0.00.0100.05320.09
5.6.170.0270.06720.44
5.6.160.0130.07720.71
5.6.150.0130.05018.20
5.6.140.0070.05718.11
5.6.130.0100.07718.28
5.6.120.0100.07720.94
5.6.110.0100.08321.01
5.6.100.0070.03721.02
5.6.90.0070.07021.08
5.6.80.0230.05720.42
5.5.310.0270.05320.27
5.5.300.0070.04717.95
5.5.290.0100.07718.07
5.5.280.0130.03720.97
5.5.270.0100.06320.87
5.5.260.0030.05020.77
5.5.250.0130.06320.69
5.5.240.0170.04020.27

preferences:
139.74 ms | 1394 KiB | 7 Q