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.0.5, 7.0.7 - 7.1.0
Warning: substr() expects parameter 3 to be integer, string given in /in/uhu1r on line 2
Output for 5.3.14, 5.3.17, 5.3.19, 5.3.21, 5.4.6, 5.4.14, 5.4.20, 5.4.32 - 5.4.34, 5.5.11, 5.5.14, 5.5.18, 5.5.26, 5.5.31, 5.6.1, 5.6.11, 5.6.16 - 5.6.17, 5.6.20, 5.6.23, 7.0.6
Notice: A non well formed numeric value encountered in /in/uhu1r on line 2
Output for 5.3.0 - 5.3.13, 5.3.15 - 5.3.16, 5.3.18, 5.3.20, 5.3.22 - 5.4.5, 5.4.7 - 5.4.13, 5.4.15 - 5.4.19, 5.4.21 - 5.4.31, 5.4.35 - 5.5.10, 5.5.12 - 5.5.13, 5.5.15 - 5.5.16, 5.5.19 - 5.5.25, 5.5.27 - 5.5.30, 5.5.32 - 5.6.0, 5.6.2 - 5.6.10, 5.6.12 - 5.6.15, 5.6.18 - 5.6.19, 5.6.21 - 5.6.22, 5.6.24 - 5.6.28
Warning: substr() expects parameter 3 to be long, string given in /in/uhu1r on line 2
Output for 4.3.0 - 5.2.17