3v4l.org

run code in 300+ PHP versions simultaneously
<?php $limit = 4; $selections = ['a', 'b', 'c', 'd', 'e']; shuffle($selections); foreach ($selections as $i => $selection) { echo "before include $selection\n"; // start include code... if ($i < $limit) { echo "**display limited $selection**\n"; } // end include code echo "after include $selection\n"; echo "---\n"; }

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.3.10.0850.00514.75
7.3.00.0360.00914.92
7.2.130.0350.00314.91
7.2.120.0470.00514.87
7.2.110.0360.01215.06
7.2.100.0470.00314.90
7.2.90.0440.00915.10
7.2.80.0390.00815.13
7.2.70.0380.00715.11
7.2.60.0450.00514.96
7.2.50.0450.00715.13
7.2.40.0360.00615.28
7.2.30.0440.00715.13
7.2.20.0400.00415.03
7.2.10.0330.00814.88
7.2.00.0320.00914.97
7.1.250.0310.00413.86

preferences:
51.06 ms | 403 KiB | 5 Q