3v4l.org

run code in 300+ PHP versions simultaneously
<?php // MT_RAND_MT19937 mt_srand(1, 0); var_dump(mt_rand()); // MT_RAND_PHP mt_srand(1, 1); var_dump(mt_rand()); // Unknown mt_srand(1, 2); var_dump(mt_rand()); // Equivalent to 0 when cast as unsigned 8-bit integer mt_srand(1, 256); var_dump(mt_rand());
Output for git.master, git.master_jit, rfc.property-hooks
int(895547922) Deprecated: The MT_RAND_PHP variant of Mt19937 is deprecated in /in/fOZbQ on line 7 int(1244335972) Deprecated: The MT_RAND_PHP variant of Mt19937 is deprecated in /in/fOZbQ on line 10 int(1244335972) int(895547922)

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:
30.78 ms | 406 KiB | 5 Q