3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $base = '01234567890'; $num = 11112887; $result_62 = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; $base_arr = str_split($base); $base_len = 10; $result_62_arr = str_split($result_62); $result_62_len = 62; $num_arr = str_split($num); $num_len = strlen($num); while($num != '0') { $return = $result_62_arr[bcmod($num,62)].$return; $num = bcdiv($num,62,0); } echo $return;
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: return in /in/s4WAG on line 16 KCY7
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: return in /in/s4WAG on line 16 KCY7
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: str_split() in /in/s4WAG on line 7
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: str_split() in /in/s4WAG on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: str_split() in /in/s4WAG on line 7