3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php $num = mt_rand ( 0, 0xffffff ); // trust the library, love the library... $output = sprintf ( "%06x" , $num ); // muchas smoochas to you, PHP! echo $output;
Output for 5.3.7 - 5.3.28, 5.4.0 - 5.4.30
Parse error: syntax error, unexpected '<' in /in/u6W3M on line 2
Process exited with code 255.

preferences:
167.99 ms | 1395 KiB | 60 Q