3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [1, 2, 3, 4]; $callable = function($value, $key, array &$output) { $output[$key] $value * 100; }; $output = []; array_map($callable, $array, array_keys($array), $output); print_r($output);

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.0070.05720.55
5.6.150.0000.04718.23
5.6.140.0070.05718.12
5.6.130.0000.05718.30
5.6.120.0070.07021.02
5.6.110.0170.07021.09
5.6.100.0330.06720.96
5.6.90.0300.06721.03
5.6.80.0130.07720.39
5.5.300.0030.04717.96
5.5.290.0030.08717.95
5.5.280.0030.07320.77
5.5.270.0100.08020.71
5.5.260.0030.05320.88
5.5.250.0200.07320.55
5.5.240.0200.07320.07

preferences:
138.9 ms | 1394 KiB | 7 Q