3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <style type="text/css"> .Knopf {width:135px; height: 135px; text-align:center; font-size:100%;} .Anzeige {width:50px; height: 100px;width:100%; text-align:center; } .zahlentaste {width:135px; height: 135px; text-align:center; font-size:100%;} .Ergebnis {width:135px; height: 135px; text-align:center; font-size:100%;} </style> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Taschenrechner</title> <link href="Stylesheets/Stylesheets.css" rel="stylesheet" type="text/css"> </head> <body> <?php if(isset($_POST['zahl'])){ $zahl1 = $_POST['zahl']; }else{ $zahl1 = 0; } ?> <form name="rechner" action="echner.php" method="post"> <input id="feld1" type="hidden" name="zahl1" value=""> <input id="feld2" type="hidden" name="op" value=""> <input id="feld3" type="hidden" name="zahl2" value=""> <input id="feld4" type="hidden" name="zwerg" value=> <table align="center" style="width:300px; height:450px; border:solid thick black;"> <tr> <td align="center"> <input id="display" type="text" name="bildschirm" readonly="readonly" style="text-align: center; height: 50px; width: 216px;" value=<?php echo $zahl1; $op; $zahl2 ?>> </td> </tr> <tr> <td> <table align="center"> <tr> <td> <input class="zahlentaste" type="submit" name="zahl" value="1" > </td> <td> <input class="zahlentaste" type="submit" name="zahl" value="2"> </td> <td> <input class="zahlentaste" type="submit" name="zahl" value="3"> </td> <td> <input class="zahlentaste" type="submit" name="operator" value="+"> </td> </tr> <tr> <td> <input class="zahlentaste" type="submit" name="zahl" value="4"> </td> <td> <input class="zahlentaste" type="submit" name="zahl" value="5"> </td> <td > <input class="zahlentaste" type="submit" name="zahl" value="6"> </td> <td> <input class="zahlentaste" type="submit" name="operator" value="-"> </td> </tr> <tr> <td> <input class="zahlentaste" type="submit" name="zahl" value="7"> </td> <td> <input class="zahlentaste" type="submit" name="zahl" value="8"> </td> <td> <input class="zahlentaste" type="submit" name="zahl" value="9"> </td> <td> <input class="zahlentaste" type="submit" name="operator" value="*"> </td> </tr> <tr> <td> <input class="zahlentaste" type="submit" name="clear" value="C"> </td> <td> <input class="zahlentaste" type="submit" name="zahl" value="0"> </td> <td> <input class="zahlentaste" type="submit" name="zahl" value="."> </td> <td> <input class="zahlentaste" type="submit" name="operator" value="/"> </td> </tr> <tr> <td> <input class="zahlentaste" type="submit" name="funktion" value="quad"> </td> <td> <input class="zahlentaste" type="submit" name="funktion" value="wurzel"> </td> <td> <input class="zahlentaste" type="submit" name="funktion" value="sin(x)"> </td> <td> <input class="zahlentaste" type="submit" name="funktion" value="cos(x)"> </td> </tr> <tr> <td colspan="4"> <input type="submit" name="gleich" value="=" style=" width: 215px; height: 50px;"> </td> </tr> </table> </td> </tr> </table> </form> </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.0000.01416.75
8.3.50.0040.01116.39
8.3.40.0150.00618.82
8.3.30.0120.00318.67
8.3.20.0000.00820.16
8.3.10.0080.00021.91
8.3.00.0040.00417.78
8.2.180.0070.01016.50
8.2.170.0210.00022.96
8.2.160.0110.00719.28
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00822.33
8.2.120.0080.00026.35
8.2.110.0090.00019.31
8.2.100.0070.00418.28
8.2.90.0060.00319.20
8.2.80.0040.00418.03
8.2.70.0070.00417.75
8.2.60.0050.00318.16
8.2.50.0040.00418.10
8.2.40.0000.00820.42
8.2.30.0000.00821.11
8.2.20.0040.00418.08
8.2.10.0000.00718.02
8.2.00.0000.00718.11
8.1.280.0140.00725.92
8.1.270.0070.00023.96
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0060.00324.02
8.1.230.0070.00419.00
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0000.00817.22
8.1.180.0000.00818.10
8.1.170.0030.00518.46
8.1.160.0030.00319.02
8.1.150.0040.00420.71
8.1.140.0040.00419.50
8.1.130.0070.00018.91
8.1.120.0070.00017.45
8.1.110.0000.00817.50
8.1.100.0040.00417.35
8.1.90.0040.00417.52
8.1.80.0050.00317.34
8.1.70.0040.00417.45
8.1.60.0040.00417.62
8.1.50.0030.00617.54
8.1.40.0040.00417.41
8.1.30.0040.00417.70
8.1.20.0070.00317.63
8.1.10.0080.00017.56
8.1.00.0020.00517.48
8.0.300.0070.00018.77
8.0.290.0000.00816.75
8.0.280.0030.00318.37
8.0.270.0000.00717.30
8.0.260.0070.00016.88
8.0.250.0080.00016.94
8.0.240.0000.00816.97
8.0.230.0070.00016.92
8.0.220.0000.00716.91
8.0.210.0000.00716.98
8.0.200.0030.00316.91
8.0.190.0000.00716.98
8.0.180.0000.00716.98
8.0.170.0000.00716.98
8.0.160.0000.01116.94
8.0.150.0040.00416.88
8.0.140.0030.00316.88
8.0.130.0050.00013.29
8.0.120.0000.00816.89
8.0.110.0020.00516.72
8.0.100.0040.00416.77
8.0.90.0000.00716.94
8.0.80.0100.00716.89
8.0.70.0040.00416.93
8.0.60.0040.00416.94
8.0.50.0040.00416.85
8.0.30.0090.00817.15
8.0.20.0090.01117.40
8.0.10.0090.00017.04
8.0.00.0090.01016.75
7.4.330.0000.00615.55
7.4.320.0070.00016.40
7.4.300.0040.00416.51
7.4.290.0030.00716.51
7.4.280.0040.00416.39
7.4.270.0030.00316.52
7.4.260.0030.00316.59
7.4.250.0000.00716.56
7.4.240.0030.00316.52
7.4.230.0000.00716.42
7.4.220.0120.00616.63
7.4.210.0090.00616.63
7.4.200.0000.00716.42
7.4.160.0070.00916.53
7.4.150.0050.01217.40
7.4.140.0090.00917.86
7.4.130.0070.01016.49
7.4.120.0050.01516.53
7.4.110.0040.01216.47
7.4.100.0070.01316.70
7.4.90.0180.00016.49
7.4.80.0060.01719.39
7.4.70.0030.01316.54
7.4.60.0080.00816.51
7.4.50.0040.00816.34
7.4.40.0080.00816.52
7.4.30.0100.00616.36
7.4.00.0060.01014.85
7.3.330.0030.00312.94
7.3.320.0000.00513.08
7.3.310.0070.00016.21
7.3.300.0030.00316.20
7.3.290.0020.01216.22
7.3.280.0070.00916.19
7.3.270.0040.01317.40
7.3.260.0080.00916.51
7.3.250.0080.01116.28
7.3.240.0130.00816.54
7.3.230.0130.00416.23
7.3.210.0130.00316.31
7.3.200.0080.01316.32
7.3.190.0040.01516.32
7.3.180.0130.00716.51
7.3.170.0030.01216.25
7.3.160.0060.00916.54
7.2.330.0110.00616.69
7.2.320.0040.01416.37
7.2.310.0120.00616.57
7.2.300.0150.00716.38
7.2.290.0140.00316.61
7.2.60.0060.01016.43
7.2.00.0160.00719.27
7.1.200.0050.00515.70
7.1.100.0070.00718.00
7.1.70.0040.00417.21
7.1.60.0090.00317.22
7.1.50.0080.01116.88
7.1.40.0030.00916.48
7.1.30.0030.01016.39
7.1.20.0060.00616.89
7.1.10.0000.00916.64
7.1.00.0070.00316.67
7.0.200.0030.00616.81
7.0.190.0000.00816.76
7.0.180.0040.00416.33
7.0.170.0050.00216.11
7.0.160.0000.00716.15
7.0.150.0040.00416.45
7.0.140.0040.00416.30
7.0.130.0030.00516.62
7.0.120.0040.00416.41
7.0.110.0000.00816.19
7.0.100.0130.00016.57
7.0.90.0050.00216.37
7.0.80.0000.00816.41
7.0.70.0000.00716.10
7.0.60.0000.00816.07
7.0.50.0040.00416.31
7.0.40.0000.00714.89
7.0.30.0040.00414.89
7.0.20.0030.00614.89
7.0.10.0040.00414.89
7.0.00.0110.00014.89

preferences:
47.32 ms | 400 KiB | 5 Q