3v4l.org

run code in 500+ PHP versions simultaneously
<?php mt_srand(1); var_dump(rand(10,1)); var_dump(mt_rand(10,1));
Output for git.master, git.master_jit
int(6) Fatal error: Uncaught ValueError: mt_rand(): Argument #2 ($max) must be greater than or equal to argument #1 ($min) in /in/OpGqW:4 Stack trace: #0 /in/OpGqW(4): mt_rand(10, 1) #1 {main} thrown in /in/OpGqW on line 4
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
48.66 ms | 692 KiB | 4 Q