3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo srand(hash('sha256', getmypid()));
Output for 7.0.4, 7.0.6, 7.1.5, 7.1.7 - 7.2.0
Warning: srand() expects parameter 1 to be integer, string given in /in/RboJv on line 3
Output for 5.3.22 - 5.3.24, 5.3.26 - 5.3.27, 5.3.29 - 5.4.17, 5.4.19, 5.4.21, 5.4.27 - 5.4.29, 5.4.31 - 5.4.32, 5.4.35 - 5.4.44, 5.5.31 - 5.5.33, 5.5.35, 5.6.10 - 5.6.12, 5.6.15 - 5.6.17, 5.6.20 - 7.0.3, 7.0.5, 7.0.20 - 7.1.0, 7.1.6
Notice: A non well formed numeric value encountered in /in/RboJv on line 3
Output for 5.3.21, 5.3.25, 5.3.28, 5.4.18, 5.4.20, 5.4.22 - 5.4.26, 5.4.30, 5.4.34, 5.4.45 - 5.5.30, 5.5.34, 5.6.8 - 5.6.9, 5.6.13 - 5.6.14, 5.6.18 - 5.6.19
Warning: srand() expects parameter 1 to be long, string given in /in/RboJv on line 3