3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = 'ra'; $test .= 'nd'; echo $test(0, 9); // то же самое что и echo rand(0, 9); echo 'rand'(0, 9);
Output for 7.1.0
085
Output for 7.0.14
800
Output for 7.0.12
516
Output for 7.0.6
071
Output for 7.0.5
127
Output for 7.0.4
607
Output for 7.0.3
029
Output for 7.0.2
363
Output for 7.0.1
266
Output for 7.0.0
454
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.6.28
Parse error: syntax error, unexpected '(', expecting ',' or ';' in /in/ddG1d on line 11
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '(', expecting ',' or ';' in /in/ddG1d on line 11
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `','' or `';'' in /in/ddG1d on line 11
Process exited with code 255.