3v4l.org

run code in 300+ PHP versions simultaneously
<?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 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.38, 7.0.0 - 7.0.33, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
<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>

preferences:
270.63 ms | 407 KiB | 424 Q