3v4l.org

run code in 200+ PHP versions simultaneously
<?php var_dump(mt_rand(INF,INF)); var_dump(mt_rand(INF,NULL));
Output for 7.3.0 - 7.4.0
Warning: mt_rand() expects parameter 1 to be int, float given in /in/TviI3 on line 2 NULL Warning: mt_rand() expects parameter 1 to be int, float given in /in/TviI3 on line 3 NULL
Output for 7.1.0 - 7.2.25
Warning: mt_rand() expects parameter 1 to be integer, float given in /in/TviI3 on line 2 NULL Warning: mt_rand() expects parameter 1 to be integer, float given in /in/TviI3 on line 3 NULL