3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array(array(52,’10’,true), 2, ‘string’, [190, 2.11, 1206]); function printArray($array) { foreach ($array as $value) { if (is_array($value)) { printArray($value); } else { echo $value . "<br>"; } } }
based on QOU4E
Output for 7.2.0 - 7.3.1
Warning: Use of undefined constant ’10’ - assumed '’10’' (this will throw an Error in a future version of PHP) in /in/b8Alg on line 2 Warning: Use of undefined constant ‘string’ - assumed '‘string’' (this will throw an Error in a future version of PHP) in /in/b8Alg on line 2
Output for 7.1.25
Notice: Use of undefined constant ’10’ - assumed '’10’' in /in/b8Alg on line 2 Notice: Use of undefined constant ‘string’ - assumed '‘string’' in /in/b8Alg on line 2