3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $argv[1]="uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuug uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu"; $s=substr_count;for($i=0;$c=explode(' ',$argv[1])[$i++];)echo chr($s($c,u)+2*$s($c,g));
Output for 7.2.0
Warning: Use of undefined constant substr_count - assumed 'substr_count' (this will throw an Error in a future version of PHP) in /in/r6tJ3 on line 5 Warning: Use of undefined constant u - assumed 'u' (this will throw an Error in a future version of PHP) in /in/r6tJ3 on line 5 Warning: Use of undefined constant g - assumed 'g' (this will throw an Error in a future version of PHP) in /in/r6tJ3 on line 5 3 Warning: Use of undefined constant u - assumed 'u' (this will throw an Error in a future version of PHP) in /in/r6tJ3 on line 5 Warning: Use of undefined constant g - assumed 'g' (this will throw an Error in a future version of PHP) in /in/r6tJ3 on line 5 2 Notice: Undefined offset: 2 in /in/r6tJ3 on line 5
Output for 5.4.11 - 7.1.10
Notice: Use of undefined constant substr_count - assumed 'substr_count' in /in/r6tJ3 on line 5 Notice: Use of undefined constant u - assumed 'u' in /in/r6tJ3 on line 5 Notice: Use of undefined constant g - assumed 'g' in /in/r6tJ3 on line 5 3 Notice: Use of undefined constant u - assumed 'u' in /in/r6tJ3 on line 5 Notice: Use of undefined constant g - assumed 'g' in /in/r6tJ3 on line 5 2 Notice: Undefined offset: 2 in /in/r6tJ3 on line 5
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ';' in /in/r6tJ3 on line 5
Process exited with code 255.