3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str="<!doctype html> <html> <head> <title>My Calculator</title> </head> <body align="center"> <b> MY CALCULATOR</b> <table border="0" cellpadding="3" cellspacing="0" align="center"> <tr><td> <form method="POST" action=""> <label for="First number"> First number:</label> </td> <td> <inputtype="text"name="first_num" maxlength="20"/> </td> </tr> <br/> <tr> <td> <label for="Second number"> Second number:</label> </td> <td><input type="text" name="sec_num" maxlength="20"/></td> </tr> <br/> <tr> <td> <input type="submit" name="opt" value="+"/> &nbsp; <input type="submit" name="opt" value="-"/> </td><td> <input type="submit" name="opt" value="*"/> &nbsp; <input type="submit" name="opt" value="/"/> &nbsp; <input type="reset" value="RESET"</td> </form> </tr> </table> </body> </html>"; echo htmlentities($str); ?>

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)
5.4.240.0090.05112.37
5.4.230.0070.05312.36
5.4.220.0090.04312.36
5.4.210.0070.04812.36
5.4.200.0080.05012.36
5.4.190.0100.04812.36
5.4.180.0110.05312.36
5.4.170.0090.05612.37
5.4.160.0150.04512.36
5.4.150.0100.04612.36
5.4.140.0120.06212.05
5.4.130.0100.04512.03
5.4.120.0090.05111.99
5.4.110.0110.05911.99
5.4.100.0110.05311.99
5.4.90.0090.05011.99
5.4.80.0070.04411.99
5.4.70.0090.03911.99
5.4.60.0060.04011.99
5.4.50.0070.03611.99
5.4.40.0070.03911.97
5.4.30.0070.03811.97
5.4.20.0060.04011.97
5.4.10.0080.03711.97
5.4.00.0070.04111.46
5.3.280.0130.04112.71
5.3.270.0090.04512.73
5.3.260.0090.04812.72
5.3.250.0090.04612.72
5.3.240.0070.04612.72
5.3.230.0090.04512.71
5.3.220.0100.04412.68
5.3.210.0080.04312.68
5.3.200.0070.03812.68
5.3.190.0090.03912.68
5.3.180.0070.03712.67
5.3.170.0060.04112.67
5.3.160.0080.03812.67
5.3.150.0070.04312.67
5.3.140.0070.03912.66
5.3.130.0070.04112.66
5.3.120.0060.04012.66
5.3.110.0100.05112.66
5.3.100.0080.04312.12
5.3.90.0080.04512.08
5.3.80.0090.04712.07
5.3.70.0100.04612.07
5.3.60.0080.04612.06
5.3.50.0090.04812.00
5.3.40.0080.04412.00
5.3.30.0090.04211.94
5.3.20.0070.04711.71
5.3.10.0060.04611.67
5.3.00.0090.04111.66

preferences:
133.01 ms | 1386 KiB | 7 Q