3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(array_map(function($no){ $value = str_pad($$no, 2, '0', STR_PAD_LEFT); return "<th>$value</th>"; }, range(0,24)));
based on 0auUv
Output for 5.3.0 - 7.2.0
Notice: Undefined variable: 0 in /in/gL8H8 on line 4 Notice: Undefined variable: 1 in /in/gL8H8 on line 4 Notice: Undefined variable: 2 in /in/gL8H8 on line 4 Notice: Undefined variable: 3 in /in/gL8H8 on line 4 Notice: Undefined variable: 4 in /in/gL8H8 on line 4 Notice: Undefined variable: 5 in /in/gL8H8 on line 4 Notice: Undefined variable: 6 in /in/gL8H8 on line 4 Notice: Undefined variable: 7 in /in/gL8H8 on line 4 Notice: Undefined variable: 8 in /in/gL8H8 on line 4 Notice: Undefined variable: 9 in /in/gL8H8 on line 4 Notice: Undefined variable: 10 in /in/gL8H8 on line 4 Notice: Undefined variable: 11 in /in/gL8H8 on line 4 Notice: Undefined variable: 12 in /in/gL8H8 on line 4 Notice: Undefined variable: 13 in /in/gL8H8 on line 4 Notice: Undefined variable: 14 in /in/gL8H8 on line 4 Notice: Undefined variable: 15 in /in/gL8H8 on line 4 Notice: Undefined variable: 16 in /in/gL8H8 on line 4 Notice: Undefined variable: 17 in /in/gL8H8 on line 4 Notice: Undefined variable: 18 in /in/gL8H8 on line 4 Notice: Undefined variable: 19 in /in/gL8H8 on line 4 Notice: Undefined variable: 20 in /in/gL8H8 on line 4 Notice: Undefined variable: 21 in /in/gL8H8 on line 4 Notice: Undefined variable: 22 in /in/gL8H8 on line 4 Notice: Undefined variable: 23 in /in/gL8H8 on line 4 Notice: Undefined variable: 24 in /in/gL8H8 on line 4 array(25) { [0]=> string(11) "<th>00</th>" [1]=> string(11) "<th>00</th>" [2]=> string(11) "<th>00</th>" [3]=> string(11) "<th>00</th>" [4]=> string(11) "<th>00</th>" [5]=> string(11) "<th>00</th>" [6]=> string(11) "<th>00</th>" [7]=> string(11) "<th>00</th>" [8]=> string(11) "<th>00</th>" [9]=> string(11) "<th>00</th>" [10]=> string(11) "<th>00</th>" [11]=> string(11) "<th>00</th>" [12]=> string(11) "<th>00</th>" [13]=> string(11) "<th>00</th>" [14]=> string(11) "<th>00</th>" [15]=> string(11) "<th>00</th>" [16]=> string(11) "<th>00</th>" [17]=> string(11) "<th>00</th>" [18]=> string(11) "<th>00</th>" [19]=> string(11) "<th>00</th>" [20]=> string(11) "<th>00</th>" [21]=> string(11) "<th>00</th>" [22]=> string(11) "<th>00</th>" [23]=> string(11) "<th>00</th>" [24]=> string(11) "<th>00</th>" }
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /in/gL8H8 on line 3
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 T_FUNCTION, expecting ')' in /in/gL8H8 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `')'' in /in/gL8H8 on line 3
Process exited with code 255.