3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Mislukte opvragingen: Limburger, De Gelderlander, RTV Noord, Rijnmond, RTV Utrecht, De Telegraaf, Nieuws.nl, Verkeersnet, Leidsch Dagblad, NS Pers, NS Actueel"; function shortenString($string) { if(strlen($string) > 30) { echo substr($string, 0, 30 ) . '...'; } else { echo $string; } } ?><!DOCTYPE html> <html> <head> <title>Test</title> <meta charset="ISO-8859-1"> </head> <body> <?php echo ' <table border="0" width="55%" cellspacing="0" cellpadding="0"> <tr> <th>ID</th> <th>Filename</th> <th>Date Logged</th> <th>Parsetime</th> <th>Comments</th> </tr> <tr> <td>6</td> <td>newsscanner.php</td> <td>1 feb 2017 om: 11:21</td> <td>11.9235889</td> <td>'.shortenString($string).'</td> </tr> </table>'; ?> </body> </html>
Output for git.master, git.master_jit, rfc.property-hooks
<!DOCTYPE html> <html> <head> <title>Test</title> <meta charset="ISO-8859-1"> </head> <body> Mislukte opvragingen: Limburge... <table border="0" width="55%" cellspacing="0" cellpadding="0"> <tr> <th>ID</th> <th>Filename</th> <th>Date Logged</th> <th>Parsetime</th> <th>Comments</th> </tr> <tr> <td>6</td> <td>newsscanner.php</td> <td>1 feb 2017 om: 11:21</td> <td>11.9235889</td> <td></td> </tr> </table> </body> </html>

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