3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rows = 10; $cols = 10; echo "<table border=\"1\">"; echo('<tr>'); for ($r =1; $r <= $cols; $r++){ echo("<td>.$r.</td>"); } echo('</tr>'); for($s = 1,$r=1;$s<=rows;$s++){ echo("<tr>"); if($r==1){ echo"<td>$s</td>"; } while($r<=10){ echo'<td>'.$s*$r++.'</td>'; } echo"</tr>"; $r=1;}
Output for git.master, git.master_jit, rfc.property-hooks
<table border="1"><tr><td>.1.</td><td>.2.</td><td>.3.</td><td>.4.</td><td>.5.</td><td>.6.</td><td>.7.</td><td>.8.</td><td>.9.</td><td>.10.</td></tr> Fatal error: Uncaught Error: Undefined constant "rows" in /in/YGSqF:11 Stack trace: #0 {main} thrown in /in/YGSqF on line 11
Process exited with code 255.

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:
41.13 ms | 402 KiB | 8 Q