3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'acdmnprst'; $b = 'abcdefghijlmnopqrstuvz'; $al = strlen($a); $bl = strlen($b); $vowels = array('a', 'e', 'i', 'o', 'u', 'y'); for ($i = 0; $i < $al; $i++) { for ($j = 0; $j < $bl; $j++) { $arr = array($b[$j], $a[$i]); //if (0 === count(array_intersect($arr, $vowels))) { // continue; //} echo $b[$j] . $a[$i] . "\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.0.10.0100.04320.30
7.0.00.0070.07320.07
5.6.160.0030.04320.71
5.6.150.0030.05318.19
5.6.140.0030.07318.19
5.6.130.0130.07318.14
5.6.120.0100.08021.12
5.6.110.0070.07720.98
5.6.100.0030.08021.11
5.6.90.0070.08321.10
5.6.80.0070.08020.37
5.5.300.0030.04718.08
5.5.290.0070.08717.95
5.5.280.0000.04320.80
5.5.270.0030.04020.75
5.5.260.0170.07020.96
5.5.250.0100.05720.69
5.5.240.0230.03020.25

preferences:
141.34 ms | 1386 KiB | 7 Q