3v4l.org

run code in 300+ PHP versions simultaneously
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>The HTML5 Herald</title> <meta name="description" content="Website Homepage"> <meta name="author" content="Milos Djokic"> <link rel="stylesheet" href="css.css"> <script> function loadXMLDoc() { var xmlhttp; if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("ajaxdiv").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","author.txt",true); xmlhttp.send(); } </script> </head> <body> <div id="ajaxdiv"> <h2>Let AJAX change this text</h2> </div> <button type="button" onclick="loadXMLDoc()">Show Author</button> <BR> <BR> Show Current Table - SELECT: <?php include 'select.php';?> <BR> <BR> INSERT: <form action="insert.php" method="post"> Firstname: <input type="text" name="firstname"> Lastname: <input type="text" name="lastname"> Age: <input type="text" name="age"> <input type="submit"> </form> <BR> <BR> UPDATE AGE: <form action="insert.php" method="post"> Firstname: <input type="text" name="firstname"> Lastname: <input type="text" name="lastname"> Age: <input type="text" name="age"> <input type="submit"> </form> <BR> <BR> DELETE USING FIRSTNAME AND LASTNAME: <form action="delete.php" method="post"> Firstname: <input type="text" name="firstname"> Lastname: <input type="text" name="lastname"> Age: <input type="text" name="age"> <input type="submit"> </form> <BR> <BR> <footer> <?php echo "<p>Copyright &copy; 1999-" . date("Y") . " Milos Djokic</p>"; ?> </footer> </body> </html>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0040.01216.63
8.3.50.0110.00722.82
8.3.40.0120.00319.09
8.3.30.0100.00719.23
8.3.20.0040.00420.21
8.3.10.0030.00623.71
8.3.00.0090.00017.63
8.2.180.0090.00616.63
8.2.170.0090.00922.96
8.2.160.0100.00320.47
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0120.00626.16
8.2.120.0000.00821.03
8.2.110.0060.00322.16
8.2.100.0110.00017.72
8.2.90.0060.00319.23
8.2.80.0050.00317.97
8.2.70.0000.00817.75
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0060.00318.03
8.2.30.0040.00418.00
8.2.20.0000.00817.59
8.2.10.0000.00717.97
8.2.00.0000.00817.56
8.1.280.0100.01025.92
8.1.270.0050.00322.20
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0070.00323.96
8.1.230.0110.00419.00
8.1.220.0060.00317.78
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0080.00017.36
8.1.180.0030.00618.10
8.1.170.0040.00418.59
8.1.160.0000.00722.01
8.1.150.0040.00418.81
8.1.140.0040.00417.46
8.1.130.0030.00317.79
8.1.120.0000.00717.56
8.1.110.0080.00017.57
8.1.100.0020.00517.57
8.1.90.0040.00417.54
8.1.80.0070.00017.55
8.1.70.0040.00417.44
8.1.60.0000.00917.57
8.1.50.0030.00517.52
8.1.40.0040.00417.49
8.1.30.0030.00617.64
8.1.20.0080.00417.74
8.1.10.0040.00417.53
8.1.00.0040.00417.64
8.0.300.0070.00018.77
8.0.290.0000.00817.00
8.0.280.0000.00718.61
8.0.270.0030.00317.43
8.0.260.0000.00718.60
8.0.250.0070.00017.22
8.0.240.0030.00617.25
8.0.230.0030.00317.09
8.0.220.0030.00317.07
8.0.210.0000.00717.07
8.0.200.0030.00317.20
8.0.190.0000.00817.21
8.0.180.0050.00217.14
8.0.170.0070.00317.13
8.0.160.0040.00317.16
8.0.150.0070.00017.13
8.0.140.0040.00417.13
8.0.130.0030.00613.43
8.0.120.0030.00517.05
8.0.110.0070.00016.98
8.0.100.0040.00417.10
8.0.90.0040.00417.03
8.0.80.0120.00417.14
8.0.70.0040.00417.13
8.0.60.0000.00817.14
8.0.50.0080.00016.98
8.0.30.0100.01217.12
8.0.20.0090.01417.40
8.0.10.0040.00417.14
8.0.00.0070.01016.95
7.4.330.0000.00615.00
7.4.320.0000.00716.52
7.4.300.0000.00616.50
7.4.290.0040.00416.54
7.4.280.0090.00016.56
7.4.270.0000.00716.53
7.4.260.0040.00416.71
7.4.250.0050.00316.52
7.4.240.0050.00216.68
7.4.230.0030.00516.45
7.4.220.0140.01116.64
7.4.210.0040.01516.63
7.4.200.0050.00316.45
7.4.160.0150.00316.71
7.4.150.0140.01117.40
7.4.140.0090.00917.86
7.4.130.0170.00316.55
7.4.120.0070.01316.73
7.4.110.0130.01016.50
7.4.100.0110.00716.48
7.4.90.0060.01116.54
7.4.80.0120.00619.39
7.4.70.0150.00916.48
7.4.60.0100.00716.68
7.4.50.0000.00416.74
7.4.40.0070.01016.73
7.4.30.0120.00616.81
7.4.00.0000.01315.16
7.3.330.0000.00613.16
7.3.320.0050.00013.13
7.3.310.0030.00316.45
7.3.300.0070.00016.34
7.3.290.0000.01716.45
7.3.280.0130.00516.43
7.3.270.0110.00717.40
7.3.260.0040.01516.53
7.3.240.0110.00716.53
7.3.230.0090.00916.61
7.3.210.0030.01316.35
7.3.200.0140.00419.39
7.3.190.0110.00616.71
7.3.180.0090.00916.56
7.3.170.0080.00816.39
7.3.160.0160.00616.64
7.2.330.0150.00816.88
7.2.320.0090.01216.60
7.2.310.0030.01416.74
7.2.300.0060.01516.67
7.2.290.0000.01716.89
7.1.70.0000.01617.34
7.1.60.0110.01419.40
7.1.50.0100.01416.90
7.1.00.0000.08022.37
7.0.200.0070.00716.89
7.0.140.0070.07321.94
7.0.110.0230.07720.07
7.0.100.0170.08020.12
7.0.90.0030.05320.09
7.0.80.0170.07719.85
7.0.70.0130.04019.96
7.0.60.0130.07719.98
7.0.50.0070.07020.05
7.0.40.0200.06719.87
7.0.30.0030.04019.71
7.0.20.0000.05019.86
7.0.10.0130.07319.82
7.0.00.0070.07719.75
5.6.280.0100.06321.14
5.6.260.0130.07720.66
5.6.250.0030.08020.59
5.6.240.0170.06320.68
5.6.230.0230.05720.68
5.6.220.0130.07320.45
5.6.210.0100.07720.62
5.6.200.0070.05720.46
5.6.190.0000.06320.70
5.6.180.0030.05020.46
5.6.170.0030.04720.84
5.6.160.0100.07320.61
5.6.150.0000.05320.66
5.6.140.0070.06720.68
5.6.130.0000.07720.64
5.6.120.0070.07320.57
5.6.110.0030.08020.60
5.6.100.0100.07720.68
5.6.90.0070.07320.63
5.6.80.0070.06719.84
5.6.70.0100.08019.93
5.6.60.0100.07319.92
5.6.50.0100.07320.22
5.6.40.0170.06719.92
5.6.30.0130.07719.94
5.6.20.0100.07320.04
5.6.10.0230.06719.91
5.6.00.0130.06719.85
5.5.380.0100.07717.52
5.5.370.0000.08017.50
5.5.360.0070.07017.63
5.5.350.0070.07317.67
5.5.340.0100.07318.17
5.5.330.0000.05018.11
5.5.320.0070.03717.90
5.5.310.0070.07318.00
5.5.300.0070.08017.99
5.5.290.0030.08318.13
5.5.280.0200.06017.90
5.5.270.0070.07018.00
5.5.260.0030.03718.03
5.5.250.0030.03717.85
5.5.240.0100.03017.41
5.5.230.0100.06717.55
5.5.220.0130.07317.51
5.5.210.0000.06017.41
5.5.200.0100.07017.21
5.5.190.0030.07717.19
5.5.180.0130.07017.13
5.5.160.0070.08017.46
5.5.150.0100.07717.34
5.5.140.0100.06717.48
5.5.130.0270.06317.22
5.5.120.0100.07017.12
5.5.110.0100.06317.45
5.5.100.0130.07017.16
5.5.90.0100.06017.42
5.5.80.0100.07717.26
5.5.70.0130.06717.14
5.5.60.0070.07017.35
5.5.50.0070.04717.27
5.5.40.0070.08017.41
5.5.30.0000.07317.14
5.5.20.0100.07017.38
5.5.10.0030.08017.25
5.5.00.0070.08317.25
5.4.450.0070.04319.29
5.4.440.0130.07719.29
5.4.430.0100.07719.41
5.4.420.0000.08319.20
5.4.410.0070.08019.13
5.4.400.0070.07019.05
5.4.390.0030.05718.91
5.4.380.0100.08018.95
5.4.370.0070.07718.88
5.4.360.0100.07319.00
5.4.350.0100.07719.23
5.4.340.0100.07318.99
5.4.320.0100.07719.13
5.4.310.0030.07318.96
5.4.300.0130.07318.98
5.4.290.0070.07319.23
5.4.280.0100.05319.22
5.4.270.0070.07718.98
5.4.260.0070.07018.88
5.4.250.0170.07019.20
5.4.240.0170.07019.08
5.4.230.0170.06319.20
5.4.220.0230.06319.12
5.4.210.0170.06018.98
5.4.200.0070.07318.90
5.4.190.0130.06018.95
5.4.180.0100.07318.89
5.4.170.0000.05019.05
5.4.160.0030.08319.01
5.4.150.0070.07719.11
5.4.140.0100.05016.18
5.4.130.0130.03316.37
5.4.120.0030.07716.21
5.4.110.0100.07316.50
5.4.100.0070.07316.39
5.4.90.0100.07316.37
5.4.80.0070.07316.52
5.4.70.0030.07716.52
5.4.60.0100.06716.16
5.4.50.0030.04016.33
5.4.40.0030.05016.39
5.4.30.0070.07316.21
5.4.20.0130.06016.30
5.4.10.0100.08016.29
5.4.00.0030.06315.88
5.3.290.0030.07014.69
5.3.280.0070.08014.49
5.3.270.0130.06714.48
5.3.260.0130.07314.62
5.3.250.0100.07314.47
5.3.240.0170.05314.69
5.3.230.0070.07314.70
5.3.220.0100.07314.66
5.3.210.0030.08714.52
5.3.200.0030.07314.51
5.3.190.0070.07314.67
5.3.180.0030.07714.57
5.3.170.0070.06714.56
5.3.160.0070.07314.39
5.3.150.0170.06714.39
5.3.140.0130.07014.42
5.3.130.0070.06714.54
5.3.120.0030.08014.64
5.3.110.0030.07314.48
5.3.100.0030.07313.91
5.3.90.0070.07313.93
5.3.80.0100.06713.90
5.3.70.0000.07013.86
5.3.60.0170.06313.94
5.3.50.0030.07713.80
5.3.40.0030.05313.81
5.3.30.0030.06013.84
5.3.20.0070.07313.77
5.3.10.0130.06713.45
5.3.00.0030.07313.53
5.2.170.0030.04011.21
5.2.160.0000.06011.09
5.2.150.0030.06711.03
5.2.140.0030.05011.05
5.2.130.0030.06311.04
5.2.120.0000.06010.89
5.2.110.0070.06011.04
5.2.100.0030.06010.90
5.2.90.0030.05011.13
5.2.80.0070.06011.00
5.2.70.0070.05710.99
5.2.60.0070.05710.98
5.2.50.0030.06311.11
5.2.40.0030.06710.95
5.2.30.0130.05010.91
5.2.20.0070.05710.96
5.2.10.0130.03010.99
5.2.00.0030.05010.73
5.1.60.0070.05310.15
5.1.50.0070.0539.82
5.1.40.0030.0539.98
5.1.30.0030.05710.35
5.1.20.0100.05710.36
5.1.10.0130.03310.00
5.1.00.0000.04010.14
5.0.50.0030.0479.75
5.0.40.0070.0409.75
5.0.30.0100.0579.75
5.0.20.0030.0439.75
5.0.10.0030.0339.75
5.0.00.0070.0539.75
4.4.90.0000.0379.75
4.4.80.0030.0209.75
4.4.70.0070.0279.75
4.4.60.0030.0239.75
4.4.50.0030.0309.75
4.4.40.0030.0409.75
4.4.30.0000.0379.75
4.4.20.0070.0309.75
4.4.10.0030.0339.75
4.4.00.0070.0509.75
4.3.110.0100.0279.75
4.3.100.0000.0279.75
4.3.90.0030.0309.75
4.3.80.0000.0479.75
4.3.70.0070.0279.75
4.3.60.0070.0239.75
4.3.50.0070.0309.75
4.3.40.0070.0239.75
4.3.30.0000.0339.75
4.3.20.0030.0379.75
4.3.10.0070.0309.75
4.3.00.0000.0339.75

preferences:
45.89 ms | 401 KiB | 5 Q