3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array( 1 => "h01", 2 => "h02", 3 => "h03", 4 => "h04", 5 => "h05", 6 => "h06", 7 => "h07", 8 => "h08", 9 => "h09", 10 => "h10", 11 => "h11", 12 => "h12", 13 => "h13", 14 => "h14", 15 => "h15", 16 => "h16", 17 => "h17", 18 => "h18", 19 => "h01", 20 => "h02", 21 => "h03", 22 => "h04", 23 => "h05", 24 => "h06", 25 => "h07", 26 => "h08", 27 => "h09", 28 => "h10", 29 => "h11", 30 => "h12", 31 => "h13", 32 => "h14", 33 => "h15", 34 => "h16", 35 => "h17" ); $team = 18; ?> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <p><input type="text" value="<?php echo $array[($team + 1) - 1]; ?>"></p> <p><input type="text" value="<?php echo $array[($team + 2) - 1]; ?>"></p> <p><input type="text" value="<?php echo $array[($team + 3) - 1]; ?>"></p> <p><input type="text" value="<?php echo $array[($team + 4) - 1]; ?>"></p> <p><input type="text" value="<?php echo $array[($team + 5) - 1]; ?>"></p> <p><input type="text" value="<?php echo $array[($team + 6) - 1]; ?>"></p> <p><input type="text" value="<?php echo $array[($team + 7) - 1]; ?>"></p> <p><input type="text" value="<?php echo $array[($team + 8) - 1]; ?>"></p> <p><input type="text" value="<?php echo $array[($team + 9) - 1]; ?>"></p> <p><input type="text" value="<?php echo $array[($team + 10) - 1]; ?>"></p> <p><input type="text" value="<?php echo $array[($team + 11) - 1]; ?>"></p> <p><input type="text" value="<?php echo $array[($team + 12) - 1]; ?>"></p> <p><input type="text" value="<?php echo $array[($team + 13) - 1]; ?>"></p> <p><input type="text" value="<?php echo $array[($team + 14) - 1]; ?>"></p> <p><input type="text" value="<?php echo $array[($team + 15) - 1]; ?>"></p> <p><input type="text" value="<?php echo $array[($team + 16) - 1]; ?>"></p> <p><input type="text" value="<?php echo $array[($team + 17) - 1]; ?>"></p> <p><input type="text" value="<?php echo $array[($team + 18) - 1]; ?>"></p> </body> </html>
Output for 4.3.0 - 7.1.0
<html> <head> <title>Online PHP Script Execution</title> </head> <body> <p><input type="text" value="h18"></p> <p><input type="text" value="h01"></p> <p><input type="text" value="h02"></p> <p><input type="text" value="h03"></p> <p><input type="text" value="h04"></p> <p><input type="text" value="h05"></p> <p><input type="text" value="h06"></p> <p><input type="text" value="h07"></p> <p><input type="text" value="h08"></p> <p><input type="text" value="h09"></p> <p><input type="text" value="h10"></p> <p><input type="text" value="h11"></p> <p><input type="text" value="h12"></p> <p><input type="text" value="h13"></p> <p><input type="text" value="h14"></p> <p><input type="text" value="h15"></p> <p><input type="text" value="h16"></p> <p><input type="text" value="h17"></p> </body> </html>