3v4l.org

run code in 300+ PHP versions simultaneously
<?php internal $term = 3; $array = array(array(141,151,161), 2, 3, array(101, 202, 303)); function DisplayArray($array) { foreach ($array as $value) { if (is_array($value)) { DisplayArray($value); } else { echo $value . " "; } } } DisplayArray($array); echo 0x10;

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.0270.08020.09
7.0.10.0100.05720.10
7.0.00.0170.06320.20
5.6.170.0300.06720.47
5.6.160.0030.08320.51
5.6.150.0100.05018.19
5.6.140.0000.08318.26
5.6.130.0000.04718.21
5.6.120.0070.05720.99
5.6.110.0130.07020.99
5.6.100.0170.07721.00
5.6.90.0130.08021.10
5.6.80.0070.06720.28
5.5.310.0370.07320.29
5.5.300.0070.08317.95
5.5.290.0070.08317.95
5.5.280.0100.06720.79
5.5.270.0070.08020.95
5.5.260.0070.03720.87
5.5.250.0130.06320.67
5.5.240.0030.07720.23

preferences:
142.03 ms | 1394 KiB | 7 Q