3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo substr(0, 8, str_shuffle(implode('', array_merge(range(0,9), range('a','z'), range('A','Z')))));
Output for hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Warning: substr() expects parameter 3 to be integer, string given in /in/eL0WA on line 3
Output for 5.3.2 - 5.3.10, 5.3.12 - 5.3.16, 5.3.18 - 5.3.23, 5.3.26 - 5.3.27, 5.3.29, 5.4.1 - 5.4.10, 5.4.13 - 5.4.14, 5.4.16 - 5.4.18, 5.4.20 - 5.4.25, 5.4.28 - 5.5.0, 5.5.2 - 5.5.22, 5.5.25 - 5.5.30, 5.5.32 - 5.5.34, 5.5.36 - 5.6.0, 5.6.2 - 5.6.7, 5.6.9 - 5.6.12, 5.6.14 - 5.6.15, 5.6.17 - 5.6.18, 5.6.20 - 5.6.28
Warning: substr() expects parameter 3 to be long, string given in /in/eL0WA on line 3
Output for 5.3.0 - 5.3.1, 5.3.11, 5.3.17, 5.3.24 - 5.3.25, 5.3.28, 5.4.0, 5.4.11 - 5.4.12, 5.4.15, 5.4.19, 5.4.26 - 5.4.27, 5.5.1, 5.5.23 - 5.5.24, 5.5.31, 5.5.35, 5.6.1, 5.6.8, 5.6.13, 5.6.16, 5.6.19
Notice: A non well formed numeric value encountered in /in/eL0WA on line 3
Output for 4.3.0 - 5.2.17