3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value ='xyz:101,xyz:102,xyz:103,xyz:104,xyz:105,ABC:201,xyz:202,xyz:203,xyz:204,xyz:205'; $rows = explode(',', $value); ?> <table width='50%' border='1' cellpadding='10' cellspacing='10'> <tr> <th>Category</th> <th>Code</th> </tr> <?php foreach ($rows as $row) { $values = explode(':', $row); ?> <tr> <td><?php echo $values[0]; ?></td> <td><?php echo $values[1]; ?></td> </tr> <?php } ?> </table>
Output for git.master, git.master_jit, rfc.property-hooks
<table width='50%' border='1' cellpadding='10' cellspacing='10'> <tr> <th>Category</th> <th>Code</th> </tr> <tr> <td>xyz</td> <td>101</td> </tr> <tr> <td>xyz</td> <td>102</td> </tr> <tr> <td>xyz</td> <td>103</td> </tr> <tr> <td>xyz</td> <td>104</td> </tr> <tr> <td>xyz</td> <td>105</td> </tr> <tr> <td>ABC</td> <td>201</td> </tr> <tr> <td>xyz</td> <td>202</td> </tr> <tr> <td>xyz</td> <td>203</td> </tr> <tr> <td>xyz</td> <td>204</td> </tr> <tr> <td>xyz</td> <td>205</td> </tr> </table>

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:
106.51 ms | 407 KiB | 5 Q