3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo substr(0, 8, str_shuffle(implode('', array_merge(range(0,9), range('a','z'), range('A','Z')))));
Output for 5.3.1, 5.3.4, 5.3.12, 5.3.17, 5.3.23, 5.4.0, 5.4.44, 5.5.3, 5.5.18, 5.5.25, 5.5.30, 5.6.4 - 5.6.5, 5.6.17, 5.6.24, 5.6.38, 7.0.7, 7.0.10, 7.0.16, 7.0.26, 7.1.4, 7.1.12, 7.1.22, 7.2.9, 7.2.13, 7.3.1
Notice: A non well formed numeric value encountered in /in/eL0WA on line 3
Output for 7.3.0
Warning: substr() expects parameter 3 to be int, string given in /in/eL0WA on line 3
Output for 7.0.0 - 7.0.6, 7.0.8 - 7.0.9, 7.0.11 - 7.0.15, 7.0.17 - 7.0.25, 7.0.27 - 7.0.33, 7.1.0 - 7.1.3, 7.1.5 - 7.1.11, 7.1.13 - 7.1.21, 7.1.23 - 7.1.25, 7.2.0 - 7.2.8, 7.2.10 - 7.2.12
Warning: substr() expects parameter 3 to be integer, string given in /in/eL0WA on line 3
Output for 5.3.0, 5.3.2 - 5.3.3, 5.3.5 - 5.3.11, 5.3.13 - 5.3.16, 5.3.18 - 5.3.22, 5.3.24 - 5.3.29, 5.4.1 - 5.4.43, 5.4.45, 5.5.0 - 5.5.2, 5.5.4 - 5.5.17, 5.5.19 - 5.5.24, 5.5.26 - 5.5.29, 5.5.31 - 5.5.38, 5.6.0 - 5.6.3, 5.6.6 - 5.6.16, 5.6.18 - 5.6.23, 5.6.25 - 5.6.37
Warning: substr() expects parameter 3 to be long, string given in /in/eL0WA on line 3
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17

preferences:
189.71 ms | 402 KiB | 288 Q