3v4l.org

run code in 300+ PHP versions simultaneously
<?php include'Forms/add.php'; $que= "SELECT * FROM email"; $result= mysql_query($que); while($em = mysql_fetch_array($result)) { echo "<h4>" .$em['name'] . "</h4>"; echo "<p>" .$em['email'] . "</p>"; echo "<p>" .$em['phone'] . "</p>"; echo "<p>" .$em['subject'] . "</p>"; echo "<p>" .$em['message'] . "</p>"; } ?> <h3>Contact me</h3> <form action="addmore.php" method="post"> Name: <input type="text" name="inputName" value="" /> Email:<input type="text" name="inputEmail" value="" /> </br> Phone Number:<input type="text" name="inputPhone" value="" /> </br> Subject: <input type="text" name="inputSubject" value="" /> </br> Message: <input type="text" name="inputMessage" value="" /> </br> </br> <input type="submit" name="submit" /> </form>
Output for 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Warning: include(): open_basedir restriction in effect. File(Forms/add.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/f0IMI on line 2 Warning: include(Forms/add.php): Failed to open stream: Operation not permitted in /in/f0IMI on line 2 Warning: include(): Failed opening 'Forms/add.php' for inclusion (include_path='.:') in /in/f0IMI on line 2 Fatal error: Uncaught Error: Call to undefined function mysql_query() in /in/f0IMI:6 Stack trace: #0 {main} thrown in /in/f0IMI on line 6
Process exited with code 255.
Output for 8.0.13
Warning: include(Forms/add.php): Failed to open stream: No such file or directory in /in/f0IMI on line 2 Warning: include(): Failed opening 'Forms/add.php' for inclusion (include_path='.:') in /in/f0IMI on line 2 Fatal error: Uncaught Error: Call to undefined function mysql_query() in /in/f0IMI:6 Stack trace: #0 {main} thrown in /in/f0IMI on line 6
Process exited with code 255.
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.10, 7.3.32 - 7.3.33, 7.4.33
Warning: include(Forms/add.php): failed to open stream: No such file or directory in /in/f0IMI on line 2 Warning: include(): Failed opening 'Forms/add.php' for inclusion (include_path='.:') in /in/f0IMI on line 2 Fatal error: Uncaught Error: Call to undefined function mysql_query() in /in/f0IMI:6 Stack trace: #0 {main} thrown in /in/f0IMI on line 6
Process exited with code 255.
Output for 7.1.25 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.32
Warning: include(): open_basedir restriction in effect. File(Forms/add.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/f0IMI on line 2 Warning: include(Forms/add.php): failed to open stream: Operation not permitted in /in/f0IMI on line 2 Warning: include(): Failed opening 'Forms/add.php' for inclusion (include_path='.:') in /in/f0IMI on line 2 Fatal error: Uncaught Error: Call to undefined function mysql_query() in /in/f0IMI:6 Stack trace: #0 {main} thrown in /in/f0IMI on line 6
Process exited with code 255.
Output for 7.1.20
Warning: include(): open_basedir restriction in effect. File(Forms/add.php) is not within the allowed path(s): (/tmp:/in) in /in/f0IMI on line 2 Warning: include(Forms/add.php): failed to open stream: Operation not permitted in /in/f0IMI on line 2 Warning: include(): Failed opening 'Forms/add.php' for inclusion (include_path='.:') in /in/f0IMI on line 2 Fatal error: Uncaught Error: Call to undefined function mysql_query() in /in/f0IMI:6 Stack trace: #0 {main} thrown in /in/f0IMI on line 6
Process exited with code 255.
Output for 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.24 - 5.5.35, 5.6.7 - 5.6.28
Warning: include(Forms/add.php): failed to open stream: No such file or directory in /in/f0IMI on line 2 Warning: include(): Failed opening 'Forms/add.php' for inclusion (include_path='.:') in /in/f0IMI on line 2 Fatal error: Call to undefined function mysql_query() in /in/f0IMI on line 6
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Warning: main(Forms/add.php): failed to open stream: No such file or directory in /in/f0IMI on line 2 Warning: main(): Failed opening 'Forms/add.php' for inclusion (include_path='.:') in /in/f0IMI on line 2 Fatal error: Call to undefined function mysql_query() in /in/f0IMI on line 6
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.9
Warning: main(Forms/add.php): failed to open stream: No such file or directory in /in/f0IMI on line 2 Warning: main(): Failed opening 'Forms/add.php' for inclusion (include_path='.:') in /in/f0IMI on line 2 Warning: mysql_query(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /in/f0IMI on line 6 Warning: mysql_query(): A link to the server could not be established in /in/f0IMI on line 6 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /in/f0IMI on line 8 <h3>Contact me</h3> <form action="addmore.php" method="post"> Name: <input type="text" name="inputName" value="" /> Email:<input type="text" name="inputEmail" value="" /> </br> Phone Number:<input type="text" name="inputPhone" value="" /> </br> Subject: <input type="text" name="inputSubject" value="" /> </br> Message: <input type="text" name="inputMessage" value="" /> </br> </br> <input type="submit" name="submit" /> </form>
Output for 4.3.0 - 4.3.1
Warning: main(Forms/add.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /in/f0IMI on line 2 Warning: main() [http://www.php.net/function.main]: Failed opening 'Forms/add.php' for inclusion (include_path='.:') in /in/f0IMI on line 2 Warning: mysql_query() [http://www.php.net/function.mysql-query]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /in/f0IMI on line 6 Warning: mysql_query() [http://www.php.net/function.mysql-query]: A link to the server could not be established in /in/f0IMI on line 6 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /in/f0IMI on line 8 <h3>Contact me</h3> <form action="addmore.php" method="post"> Name: <input type="text" name="inputName" value="" /> Email:<input type="text" name="inputEmail" value="" /> </br> Phone Number:<input type="text" name="inputPhone" value="" /> </br> Subject: <input type="text" name="inputSubject" value="" /> </br> Message: <input type="text" name="inputMessage" value="" /> </br> </br> <input type="submit" name="submit" /> </form>

preferences:
247.06 ms | 404 KiB | 359 Q