3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE HTML> <html lang="en"> <head> <link href="https://s3-us-west-2.amazonaws.com/animalproperty.com/button_submission.css" rel="stylesheet" type="text/css"> <link href="https://s3-us-west-2.amazonaws.com/animalproperty.com/Bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css"> <link href="https://s3-us-west-2.amazonaws.com/animalproperty.com/Bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"> <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script> <meta name='robots' content='noindex,nofollow'/> </head> <body > <?php while ($row = $result->fetch_assoc()) { ?> <div class="properties-rows"> <div class="row"> <div class="property span9"> <div class="row"> <div class="span3"> <div class="image"> <div class="content"> <img width="570" height="425" src="<?php echo $row['image']; ?>" class="thumbnail-image" alt="19"> </div> <!-- /.content --> </div> <!-- /.image --> </div> <div class="body span6"> <div class="title-price row"> <div class="title span4"> <h2 style="color: #2468ff"><?php echo $row['property']; ?>Property</h2> </div> <!-- /.title --> </div> <!-- /.title --> <div class="location" style="color: #C70000"><h4>Company: <?php echo $row['company']; ?></h4></div> <!-- /.location --> <div class="body"> <table style="width:100%;"> <tr style="background-color: #2468ff"> <th style="color: white">General</th> <th style="color: white">Dogs</th> <th style="color: white">Cats</th> </tr> <tr style="color: #2468ff"> <td>Max Pets:<?php echo $row['max_pets']; ?></td> <td>Breeds not allowed:<?php echo $row['breeds_not_allowed']; ?></td> <td>Cat Base Deposit: $<?php echo $row['cat_deposit']; ?></td> </tr> <tr style="color: #2468ff"> <td>Pets not allowed:<?php echo $row['pet_not_allowed']; ?></td> <td>Max Weight: <?php echo $row['max_weight']; ?>lbs</td> <td>Deposit per cat: $<?php echo $row['cat_deposit_x']; ?></td> </tr> <tr style="color: #2468ff"> <td></td> <td>Max Length: <?php echo $row['length']; ?></td> <td></td> </tr> <tr style="color: #2468ff"> <td></td> <td>Dog Base Deposit: $<?php echo $row['dog_deposit']; ?></td> <td></td> </tr> <tr style="color: #2468ff"> <td></td> <td>Deposit per dog: $<?php echo $row['dog_deposit_x']; ?></td> <td></td> </tr> </table> </div> <br> <!-- /.body --> <div class="contact"> <div> <button class="btn btn-danger">Contact this property</button><span class="email"> Email:<?php echo $row['email']; ?></span> </div> </div> </div> <!-- /.body --> </div> <!-- /.row --> </div> <!-- /.property --> </div> <!-- /.row --> </div> <!-- /.property --> </div> <!-- /.row --> </div> <?php } // end of loop?> <!-- /.properties-grid --> <script type="text/javascript"> $(document).ready(function(){ $(".email").hide() }); $(".contact").on("click", function() { $(".email").toggle(); }); </script> </body> </html>
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
<!DOCTYPE HTML> <html lang="en"> <head> <link href="https://s3-us-west-2.amazonaws.com/animalproperty.com/button_submission.css" rel="stylesheet" type="text/css"> <link href="https://s3-us-west-2.amazonaws.com/animalproperty.com/Bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css"> <link href="https://s3-us-west-2.amazonaws.com/animalproperty.com/Bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"> <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script> <meta name='robots' content='noindex,nofollow'/> </head> <body > Warning: Undefined variable $result in /in/BoRBi on line 13 Fatal error: Uncaught Error: Call to a member function fetch_assoc() on null in /in/BoRBi:13 Stack trace: #0 {main} thrown in /in/BoRBi on line 13
Process exited with code 255.
Output for 7.0.5 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
<!DOCTYPE HTML> <html lang="en"> <head> <link href="https://s3-us-west-2.amazonaws.com/animalproperty.com/button_submission.css" rel="stylesheet" type="text/css"> <link href="https://s3-us-west-2.amazonaws.com/animalproperty.com/Bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css"> <link href="https://s3-us-west-2.amazonaws.com/animalproperty.com/Bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"> <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script> <meta name='robots' content='noindex,nofollow'/> </head> <body > Notice: Undefined variable: result in /in/BoRBi on line 13 Fatal error: Uncaught Error: Call to a member function fetch_assoc() on null in /in/BoRBi:13 Stack trace: #0 {main} thrown in /in/BoRBi on line 13
Process exited with code 255.
Output for 7.3.32 - 7.3.33
<!DOCTYPE HTML> <html lang="en"> <head> <link href="https://s3-us-west-2.amazonaws.com/animalproperty.com/button_submission.css" rel="stylesheet" type="text/css"> <link href="https://s3-us-west-2.amazonaws.com/animalproperty.com/Bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css"> <link href="https://s3-us-west-2.amazonaws.com/animalproperty.com/Bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"> <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script> <meta name='robots' content='noindex,nofollow'/> </head> <body > Fatal error: Uncaught Error: Call to a member function fetch_assoc() on null in /in/BoRBi:13 Stack trace: #0 {main} thrown in /in/BoRBi on line 13
Process exited with code 255.
Output for 7.0.0 - 7.0.4
<!DOCTYPE HTML> <html lang="en"> <head> <link href="https://s3-us-west-2.amazonaws.com/animalproperty.com/button_submission.css" rel="stylesheet" type="text/css"> <link href="https://s3-us-west-2.amazonaws.com/animalproperty.com/Bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css"> <link href="https://s3-us-west-2.amazonaws.com/animalproperty.com/Bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"> <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script> <meta name='robots' content='noindex,nofollow'/> </head> <body > Notice: Undefined variable: result in /in/BoRBi on line 13 Fatal error: Uncaught Error: Call to a member function fetch_assoc() on unknown in /in/BoRBi:13 Stack trace: #0 {main} thrown in /in/BoRBi on line 13
Process exited with code 255.
Output for 5.6.0 - 5.6.40
<!DOCTYPE HTML> <html lang="en"> <head> <link href="https://s3-us-west-2.amazonaws.com/animalproperty.com/button_submission.css" rel="stylesheet" type="text/css"> <link href="https://s3-us-west-2.amazonaws.com/animalproperty.com/Bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css"> <link href="https://s3-us-west-2.amazonaws.com/animalproperty.com/Bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"> <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script> <meta name='robots' content='noindex,nofollow'/> </head> <body > Notice: Undefined variable: result in /in/BoRBi on line 13 Fatal error: Call to a member function fetch_assoc() on null in /in/BoRBi on line 13
Process exited with code 255.
Output for 5.0.4 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38
<!DOCTYPE HTML> <html lang="en"> <head> <link href="https://s3-us-west-2.amazonaws.com/animalproperty.com/button_submission.css" rel="stylesheet" type="text/css"> <link href="https://s3-us-west-2.amazonaws.com/animalproperty.com/Bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css"> <link href="https://s3-us-west-2.amazonaws.com/animalproperty.com/Bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"> <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script> <meta name='robots' content='noindex,nofollow'/> </head> <body > Notice: Undefined variable: result in /in/BoRBi on line 13 Fatal error: Call to a member function fetch_assoc() on a non-object in /in/BoRBi on line 13
Process exited with code 255.
Output for 5.0.0 - 5.0.3
<!DOCTYPE HTML> <html lang="en"> <head> <link href="https://s3-us-west-2.amazonaws.com/animalproperty.com/button_submission.css" rel="stylesheet" type="text/css"> <link href="https://s3-us-west-2.amazonaws.com/animalproperty.com/Bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css"> <link href="https://s3-us-west-2.amazonaws.com/animalproperty.com/Bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"> <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script> <meta name='robots' content='noindex,nofollow'/> </head> <body > Notice: Undefined variable: result in /in/BoRBi on line 13 Fatal error: Call to a member function fetch_assoc() on a non-object in /in/BoRBi on line 13
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.9
<!DOCTYPE HTML> <html lang="en"> <head> <link href="https://s3-us-west-2.amazonaws.com/animalproperty.com/button_submission.css" rel="stylesheet" type="text/css"> <link href="https://s3-us-west-2.amazonaws.com/animalproperty.com/Bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css"> <link href="https://s3-us-west-2.amazonaws.com/animalproperty.com/Bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"> <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script> <meta name='robots' content='noindex,nofollow'/> </head> <body > Fatal error: Call to a member function on a non-object in /in/BoRBi on line 13
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<!DOCTYPE HTML> <html lang="en"> <head> <link href="https://s3-us-west-2.amazonaws.com/animalproperty.com/button_submission.css" rel="stylesheet" type="text/css"> <link href="https://s3-us-west-2.amazonaws.com/animalproperty.com/Bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css"> <link href="https://s3-us-west-2.amazonaws.com/animalproperty.com/Bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"> <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script> <meta name='robots' content='noindex,nofollow'/> </head> <body > Fatal error: Call to a member function on a non-object in /in/BoRBi on line 13

preferences:
295.13 ms | 402 KiB | 460 Q