3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(array_map(function($no){ $value = str_pad($$no, 2, '0', STR_PAD_LEFT); return "<th>$value</th>"; }, range(0,24)));
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $0 in /in/gL8H8 on line 4 Deprecated: str_pad(): Passing null to parameter #1 ($string) of type string is deprecated in /in/gL8H8 on line 4 Warning: Undefined variable $1 in /in/gL8H8 on line 4 Deprecated: str_pad(): Passing null to parameter #1 ($string) of type string is deprecated in /in/gL8H8 on line 4 Warning: Undefined variable $2 in /in/gL8H8 on line 4 Deprecated: str_pad(): Passing null to parameter #1 ($string) of type string is deprecated in /in/gL8H8 on line 4 Warning: Undefined variable $3 in /in/gL8H8 on line 4 Deprecated: str_pad(): Passing null to parameter #1 ($string) of type string is deprecated in /in/gL8H8 on line 4 Warning: Undefined variable $4 in /in/gL8H8 on line 4 Deprecated: str_pad(): Passing null to parameter #1 ($string) of type string is deprecated in /in/gL8H8 on line 4 Warning: Undefined variable $5 in /in/gL8H8 on line 4 Deprecated: str_pad(): Passing null to parameter #1 ($string) of type string is deprecated in /in/gL8H8 on line 4 Warning: Undefined variable $6 in /in/gL8H8 on line 4 Deprecated: str_pad(): Passing null to parameter #1 ($string) of type string is deprecated in /in/gL8H8 on line 4 Warning: Undefined variable $7 in /in/gL8H8 on line 4 Deprecated: str_pad(): Passing null to parameter #1 ($string) of type string is deprecated in /in/gL8H8 on line 4 Warning: Undefined variable $8 in /in/gL8H8 on line 4 Deprecated: str_pad(): Passing null to parameter #1 ($string) of type string is deprecated in /in/gL8H8 on line 4 Warning: Undefined variable $9 in /in/gL8H8 on line 4 Deprecated: str_pad(): Passing null to parameter #1 ($string) of type string is deprecated in /in/gL8H8 on line 4 Warning: Undefined variable $10 in /in/gL8H8 on line 4 Deprecated: str_pad(): Passing null to parameter #1 ($string) of type string is deprecated in /in/gL8H8 on line 4 Warning: Undefined variable $11 in /in/gL8H8 on line 4 Deprecated: str_pad(): Passing null to parameter #1 ($string) of type string is deprecated in /in/gL8H8 on line 4 Warning: Undefined variable $12 in /in/gL8H8 on line 4 Deprecated: str_pad(): Passing null to parameter #1 ($string) of type string is deprecated in /in/gL8H8 on line 4 Warning: Undefined variable $13 in /in/gL8H8 on line 4 Deprecated: str_pad(): Passing null to parameter #1 ($string) of type string is deprecated in /in/gL8H8 on line 4 Warning: Undefined variable $14 in /in/gL8H8 on line 4 Deprecated: str_pad(): Passing null to parameter #1 ($string) of type string is deprecated in /in/gL8H8 on line 4 Warning: Undefined variable $15 in /in/gL8H8 on line 4 Deprecated: str_pad(): Passing null to parameter #1 ($string) of type string is deprecated in /in/gL8H8 on line 4 Warning: Undefined variable $16 in /in/gL8H8 on line 4 Deprecated: str_pad(): Passing null to parameter #1 ($string) of type string is deprecated in /in/gL8H8 on line 4 Warning: Undefined variable $17 in /in/gL8H8 on line 4 Deprecated: str_pad(): Passing null to parameter #1 ($string) of type string is deprecated in /in/gL8H8 on line 4 Warning: Undefined variable $18 in /in/gL8H8 on line 4 Deprecated: str_pad(): Passing null to parameter #1 ($string) of type string is deprecated in /in/gL8H8 on line 4 Warning: Undefined variable $19 in /in/gL8H8 on line 4 Deprecated: str_pad(): Passing null to parameter #1 ($string) of type string is deprecated in /in/gL8H8 on line 4 Warning: Undefined variable $20 in /in/gL8H8 on line 4 Deprecated: str_pad(): Passing null to parameter #1 ($string) of type string is deprecated in /in/gL8H8 on line 4 Warning: Undefined variable $21 in /in/gL8H8 on line 4 Deprecated: str_pad(): Passing null to parameter #1 ($string) of type string is deprecated in /in/gL8H8 on line 4 Warning: Undefined variable $22 in /in/gL8H8 on line 4 Deprecated: str_pad(): Passing null to parameter #1 ($string) of type string is deprecated in /in/gL8H8 on line 4 Warning: Undefined variable $23 in /in/gL8H8 on line 4 Deprecated: str_pad(): Passing null to parameter #1 ($string) of type string is deprecated in /in/gL8H8 on line 4 Warning: Undefined variable $24 in /in/gL8H8 on line 4 Deprecated: str_pad(): Passing null to parameter #1 ($string) of type string is deprecated 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>" }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
45.72 ms | 413 KiB | 8 Q