3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<!DOCTYPE html> <html> <head> <meta charset='utf-8'> <link href='http://fonts.googleapis.com/css?family=Kelly+Slab' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Philosopher&subset=latin,cyrillic' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Playfair+Display+SC:400,900italic&subset=cyrillic,latin' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Ubuntu+Mono:700,400&subset=latin,cyrillic' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="bootstrap/css/bootstrap.css"> <link rel="stylesheet" href="css/styles.css"> <script type="text/javascript" src="jquery/jquery-2.1.0.js"></script> <script src="bootstrap/js/bootstrap.js"></script> <script src="js/scripts.js"></script> <link href="//cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/bootstrap3-editable/css/bootstrap-editable.css" rel="stylesheet"/> <script src="//cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/bootstrap3-editable/js/bootstrap-editable.min.js"></script> <title>My first page in PHP.</title> </head> <body> <div class="menu"> <div class="header"> <h3><i>Создаем рабочую программу</i></h1> </div> </div> <div class="menu_list"> <div class="navbar-wrapper"> <nav class="navbar navbar-default nav-red" role="navigation"> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <ul class="nav navbar-nav"> <li class="active"><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> <li class="divider"></li> <li><a href="#">One more separated link</a></li> </ul> </li> </ul> <form class="navbar-form navbar-left" role="search"> <div class="form-group"> <input type="text" class="form-control" placeholder="Search"> </div> <button type="submit" class="btn btn-default">Submit</button> </form> <ul class="nav navbar-nav navbar-right"> <li><a href="#">Link</a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </li> </ul> </div> </nav> </div> </div> <div class="page"> <!-- <div class="btn-group"> <button type="button" class="btn btn-default">Left</button> <button type="button" class="btn btn-default">Middle</button> <button type="button" class="btn btn-default">Right</button> <div class="btn-group"> <button type="button" class="btn btn-danger">Action</button> <button type="button" class="btn btn-danger dropdown-toggle" data-toggle="dropdown"> <span class="caret"></span> <span class="sr-only">Toggle Dropdown</span> </button> <ul class="dropdown-menu" role="menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </div> </div> --> <table class="table .table-bordered table-striped table-hover" align="center"> <?php $rowCount = 15; for ($i = 1;$i < $rowCount;$i++){ ?> <tr> <td><?php echo $i; ?></td> <td ><a class="editable" id="e<?php echo $i; ?>" data-type="text" data-pk="1" data-url="post.php" data-title="Введите новое значение">Est dolorum</a></td> <td >Lorem ipsum</td> </tr> <?php }; ?> </table> </div> <div class="paging-wrapper"> <ul class="pagination"> <li><a href="#">&laquo;</a></li> <li><a href="#">1</a></li> <li><a href="#">2</a></li> <li><a href="#">3</a></li> <li><a href="#">4</a></li> <li><a href="#">5</a></li> <li><a href="#">&raquo;</a></li> </ul> </div> <footer> <div class="footer-text"> © Lorem ipsum 2014 </div> </footer> </body> </html>
Output for 4.3.0 - 7.1.0
<!DOCTYPE html> <html> <head> <meta charset='utf-8'> <link href='http://fonts.googleapis.com/css?family=Kelly+Slab' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Philosopher&subset=latin,cyrillic' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Playfair+Display+SC:400,900italic&subset=cyrillic,latin' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Ubuntu+Mono:700,400&subset=latin,cyrillic' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="bootstrap/css/bootstrap.css"> <link rel="stylesheet" href="css/styles.css"> <script type="text/javascript" src="jquery/jquery-2.1.0.js"></script> <script src="bootstrap/js/bootstrap.js"></script> <script src="js/scripts.js"></script> <link href="//cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/bootstrap3-editable/css/bootstrap-editable.css" rel="stylesheet"/> <script src="//cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/bootstrap3-editable/js/bootstrap-editable.min.js"></script> <title>My first page in PHP.</title> </head> <body> <div class="menu"> <div class="header"> <h3><i>Создаем рабочую программу</i></h1> </div> </div> <div class="menu_list"> <div class="navbar-wrapper"> <nav class="navbar navbar-default nav-red" role="navigation"> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <ul class="nav navbar-nav"> <li class="active"><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> <li class="divider"></li> <li><a href="#">One more separated link</a></li> </ul> </li> </ul> <form class="navbar-form navbar-left" role="search"> <div class="form-group"> <input type="text" class="form-control" placeholder="Search"> </div> <button type="submit" class="btn btn-default">Submit</button> </form> <ul class="nav navbar-nav navbar-right"> <li><a href="#">Link</a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </li> </ul> </div> </nav> </div> </div> <div class="page"> <!-- <div class="btn-group"> <button type="button" class="btn btn-default">Left</button> <button type="button" class="btn btn-default">Middle</button> <button type="button" class="btn btn-default">Right</button> <div class="btn-group"> <button type="button" class="btn btn-danger">Action</button> <button type="button" class="btn btn-danger dropdown-toggle" data-toggle="dropdown"> <span class="caret"></span> <span class="sr-only">Toggle Dropdown</span> </button> <ul class="dropdown-menu" role="menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </div> </div> --> <table class="table .table-bordered table-striped table-hover" align="center"> <tr> <td>1</td> <td ><a class="editable" id="e1" data-type="text" data-pk="1" data-url="post.php" data-title="Введите новое значение">Est dolorum</a></td> <td >Lorem ipsum</td> </tr> <tr> <td>2</td> <td ><a class="editable" id="e2" data-type="text" data-pk="1" data-url="post.php" data-title="Введите новое значение">Est dolorum</a></td> <td >Lorem ipsum</td> </tr> <tr> <td>3</td> <td ><a class="editable" id="e3" data-type="text" data-pk="1" data-url="post.php" data-title="Введите новое значение">Est dolorum</a></td> <td >Lorem ipsum</td> </tr> <tr> <td>4</td> <td ><a class="editable" id="e4" data-type="text" data-pk="1" data-url="post.php" data-title="Введите новое значение">Est dolorum</a></td> <td >Lorem ipsum</td> </tr> <tr> <td>5</td> <td ><a class="editable" id="e5" data-type="text" data-pk="1" data-url="post.php" data-title="Введите новое значение">Est dolorum</a></td> <td >Lorem ipsum</td> </tr> <tr> <td>6</td> <td ><a class="editable" id="e6" data-type="text" data-pk="1" data-url="post.php" data-title="Введите новое значение">Est dolorum</a></td> <td >Lorem ipsum</td> </tr> <tr> <td>7</td> <td ><a class="editable" id="e7" data-type="text" data-pk="1" data-url="post.php" data-title="Введите новое значение">Est dolorum</a></td> <td >Lorem ipsum</td> </tr> <tr> <td>8</td> <td ><a class="editable" id="e8" data-type="text" data-pk="1" data-url="post.php" data-title="Введите новое значение">Est dolorum</a></td> <td >Lorem ipsum</td> </tr> <tr> <td>9</td> <td ><a class="editable" id="e9" data-type="text" data-pk="1" data-url="post.php" data-title="Введите новое значение">Est dolorum</a></td> <td >Lorem ipsum</td> </tr> <tr> <td>10</td> <td ><a class="editable" id="e10" data-type="text" data-pk="1" data-url="post.php" data-title="Введите новое значение">Est dolorum</a></td> <td >Lorem ipsum</td> </tr> <tr> <td>11</td> <td ><a class="editable" id="e11" data-type="text" data-pk="1" data-url="post.php" data-title="Введите новое значение">Est dolorum</a></td> <td >Lorem ipsum</td> </tr> <tr> <td>12</td> <td ><a class="editable" id="e12" data-type="text" data-pk="1" data-url="post.php" data-title="Введите новое значение">Est dolorum</a></td> <td >Lorem ipsum</td> </tr> <tr> <td>13</td> <td ><a class="editable" id="e13" data-type="text" data-pk="1" data-url="post.php" data-title="Введите новое значение">Est dolorum</a></td> <td >Lorem ipsum</td> </tr> <tr> <td>14</td> <td ><a class="editable" id="e14" data-type="text" data-pk="1" data-url="post.php" data-title="Введите новое значение">Est dolorum</a></td> <td >Lorem ipsum</td> </tr> </table> </div> <div class="paging-wrapper"> <ul class="pagination"> <li><a href="#">&laquo;</a></li> <li><a href="#">1</a></li> <li><a href="#">2</a></li> <li><a href="#">3</a></li> <li><a href="#">4</a></li> <li><a href="#">5</a></li> <li><a href="#">&raquo;</a></li> </ul> </div> <footer> <div class="footer-text"> © Lorem ipsum 2014 </div> </footer> </body> </html>