3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestClass { private $items = array(1,2,3); private $factor = 3; function getMultiplied() { print_r(array_map(function($item) { return $item * $this->factor })); }

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.4.40.0370.05811.99
5.4.30.0200.04311.98
5.4.20.0280.06611.98
5.4.10.0210.04311.98
5.4.00.0140.04711.48
5.3.140.0150.05012.66
5.3.130.0270.07112.66
5.3.120.0280.05412.66
5.3.110.0210.05112.66
5.3.100.0180.05212.13
5.3.90.0270.06812.11
5.3.80.0220.07212.10
5.3.70.0170.04612.10
5.3.60.0310.06212.08
5.3.50.0190.04412.03
5.3.40.0190.04312.03
5.3.30.0390.08411.99
5.3.20.0200.04411.77
5.3.10.0180.04611.74
5.3.00.0180.04811.72

preferences:
141.12 ms | 1394 KiB | 7 Q