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"; } } }
Output for 7.0.0 - 7.0.1
Parse error: syntax error, unexpected '}', expecting end of file in /in/ZoIEp on line 23
Process exited with code 255.
Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16
Parse error: syntax error, unexpected '}' in /in/ZoIEp on line 23
Process exited with code 255.

preferences:
164.29 ms | 1395 KiB | 25 Q