3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo mt_rand(PHP_INT_MIN, PHP_INT_MAX);
Output for 7.2.0
7173133161977426294
Output for 7.1.7
-3997362188769724743
Output for 7.1.6
6406538390427639256
Output for 7.1.5
-1225877043554678687
Output for 7.1.0
4939235967981158862
Output for 7.0.20
-6332648627609010176
Output for 7.0.6
-1492748834713894912
Output for 7.0.5
-343865329509728256
Output for 7.0.1 - 7.0.4
0
Output for 7.0.0
-6228334961594728448
Output for 4.4.0 - 4.4.9, 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28
Notice: Use of undefined constant PHP_INT_MIN - assumed 'PHP_INT_MIN' in /in/QBavX on line 3 Warning: mt_rand() expects parameter 1 to be long, string given in /in/QBavX on line 3
Output for 4.3.0 - 4.3.11, 5.0.0 - 5.0.4
Notice: Use of undefined constant PHP_INT_MIN - assumed 'PHP_INT_MIN' in /in/QBavX on line 3 Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/QBavX on line 3 Warning: mt_rand() expects parameter 1 to be long, string given in /in/QBavX on line 3

preferences:
66.52 ms | 421 KiB | 5 Q