3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $length = 10; $characters = "0123456789abcdefghijklmnopqrstuvwxyz"; $string = ""; for ($p = 0; $p < $length; $p++) { $string .= $characters[mt_rand(0, strlen($characters)-1)]; echo ($string)
based on 4MH4L
Output for 5.6.38 - 7.3.0rc3
Parse error: syntax error, unexpected end of file, expecting ',' or ';' in /in/Z2CVX on line 10
Process exited with code 255.