3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $KEY_BASE = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; $BASE = 62; $num = 11112887; $num = array_map('intval',str_split($number)); foreach ($num as $digit) { echo "digit"; }
Output for 5.1.0 - 7.2.0
Notice: Undefined variable: number in /in/U3ivP on line 5 digit
Output for 5.0.4 - 5.0.5
Notice: Undefined variable: number in /in/U3ivP on line 5
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: number in /in/U3ivP on line 5
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: str_split() in /in/U3ivP on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: str_split() in /in/U3ivP on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: str_split() in /in/U3ivP on line 5