3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr1 = range(0,9); $arr2 = range('a','z'); $pattern = array_merge($arr1.$arr2); $len = count($parttern) - 1; var_dump($len);
based on RoqHO
Output for 5.4.0 - 7.1.0
Notice: Array to string conversion in /in/CZ49e on line 4 Notice: Array to string conversion in /in/CZ49e on line 4 Warning: array_merge(): Argument #1 is not an array in /in/CZ49e on line 4 Notice: Undefined variable: parttern in /in/CZ49e on line 5 int(-1)
Output for 5.0.4 - 5.3.29
Warning: array_merge(): Argument #1 is not an array in /in/CZ49e on line 4 Notice: Undefined variable: parttern in /in/CZ49e on line 5 int(-1)
Output for 5.0.0 - 5.0.3
Warning: array_merge(): Argument #1 is not an array in /in/CZ49e on line 4 Notice: Undefined variable: parttern in /in/CZ49e on line 5 int(-1)
Output for 4.3.0 - 4.4.9
Notice: Undefined variable: parttern in /in/CZ49e on line 5 int(-1)