3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <body> <?php $state=array ( array('Alabama', 'Montgomery', 4779736, 23), array('Alaska', 'Juneau', 710231, 47), array('Arizona', 'Phoenix', 6329017, 18), array('Arkansas', 'LittleRock', 2915918, 32), array('California', 'Sacramento', 37253956, 1), array('Colorado', 'Denver', 5029196, 22), array('Connecticut', 'Hartford', 3518288, 29), array('Delaware', 'Dover', 897934, 45), array('Florida', 'Tallahassee', 18801310, 4), array('Georgia', 'Atlanta', 9687653, 9), array('Hawaii', 'Boise', 1360301, 42) ); echo "<table border=\"5\" cellpadding=\"10\">"; echo'<tr>'; echo('<th>' . State. '</th>'); echo('<th>' . Capital. '</th>'); echo('<th>' . Population. '</th>'); echo('<th>' . Rank. '</th>'); echo'</tr>'; for ($i=0; $i<11; $i++) {echo('<tr>'); for ($j=0; $j<4; $j++) {echo ('<td>' . $state[$i][$j] . '</td>'); } echo('</tr>'); } echo "</table>" ?> </body> </html>
Output for git.master, git.master_jit, rfc.property-hooks
<!DOCTYPE html> <html> <body> <table border="5" cellpadding="10"><tr> Fatal error: Uncaught Error: Undefined constant "State" in /in/0pL1O:22 Stack trace: #0 {main} thrown in /in/0pL1O on line 22
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:
56.53 ms | 401 KiB | 8 Q