3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for($i=0; $i<10; $i++) { var_dump(uniqid() % 3 === 0); }
based on I6kZG
Output for 7.1.0
Notice: A non well formed numeric value encountered in /in/DF5Bd on line 5 bool(false) Notice: A non well formed numeric value encountered in /in/DF5Bd on line 5 bool(false) Notice: A non well formed numeric value encountered in /in/DF5Bd on line 5 bool(false) Notice: A non well formed numeric value encountered in /in/DF5Bd on line 5 bool(false) Notice: A non well formed numeric value encountered in /in/DF5Bd on line 5 bool(false) Notice: A non well formed numeric value encountered in /in/DF5Bd on line 5 bool(false) Notice: A non well formed numeric value encountered in /in/DF5Bd on line 5 bool(false) Notice: A non well formed numeric value encountered in /in/DF5Bd on line 5 bool(false) Notice: A non well formed numeric value encountered in /in/DF5Bd on line 5 bool(false) Notice: A non well formed numeric value encountered in /in/DF5Bd on line 5 bool(false)
Output for 5.0.0 - 5.5.24, 5.5.26, 5.5.28, 5.5.30 - 5.5.33, 5.5.35, 5.6.10 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.4, 7.0.14
bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false)
Output for 5.5.25, 5.5.29, 5.5.34, 5.6.8 - 5.6.9, 7.0.6
bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) bool(true)
Output for 7.0.5
bool(true) bool(false) bool(false) bool(false) bool(false) bool(true) bool(false) bool(false) bool(true) bool(true)
Output for 5.5.27
bool(true) bool(false) bool(true) bool(true) bool(false) bool(true) bool(false) bool(false) bool(true) bool(false)
Output for 4.3.0 - 4.4.9
Warning: uniqid() expects at least 1 parameter, 0 given in /in/DF5Bd on line 5 bool(true) Warning: uniqid() expects at least 1 parameter, 0 given in /in/DF5Bd on line 5 bool(true) Warning: uniqid() expects at least 1 parameter, 0 given in /in/DF5Bd on line 5 bool(true) Warning: uniqid() expects at least 1 parameter, 0 given in /in/DF5Bd on line 5 bool(true) Warning: uniqid() expects at least 1 parameter, 0 given in /in/DF5Bd on line 5 bool(true) Warning: uniqid() expects at least 1 parameter, 0 given in /in/DF5Bd on line 5 bool(true) Warning: uniqid() expects at least 1 parameter, 0 given in /in/DF5Bd on line 5 bool(true) Warning: uniqid() expects at least 1 parameter, 0 given in /in/DF5Bd on line 5 bool(true) Warning: uniqid() expects at least 1 parameter, 0 given in /in/DF5Bd on line 5 bool(true) Warning: uniqid() expects at least 1 parameter, 0 given in /in/DF5Bd on line 5 bool(true)