3v4l.org

run code in 300+ PHP versions simultaneously
<?php <!DOCTYPE html> <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <form method='POST'> <h2>Please input your name:</h2> <input type="text" name="name"> <input type="submit" value="Submit Name"> </form> <?php //Retrieve name from query string and store to a local variable $name = $_POST['name']; echo "<h3> Hello $name </h3>"; ?> </body> </html> - See more at: http://www.w3resource.com/php-exercises/php-basic-exercises.php#EDITOR

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.290.0080.04412.49
5.4.280.0070.04512.39
5.4.270.0090.04512.39
5.4.260.0120.04512.39
5.4.250.0150.08412.39
5.4.240.0120.05712.39
5.4.230.0110.05012.38
5.4.220.0140.04912.38
5.4.210.0120.04112.38
5.4.200.0080.04712.38
5.4.190.0080.04912.38
5.4.180.0080.05612.38
5.4.170.0090.04912.39
5.4.160.0100.04612.38
5.4.150.0100.04212.38
5.4.140.0090.04912.07
5.4.130.0100.04112.05
5.4.120.0080.04512.01
5.4.110.0130.04212.01
5.4.100.0110.04112.01
5.4.90.0110.04912.01
5.4.80.0100.05212.01
5.4.70.0110.06112.01
5.4.60.0120.04612.01
5.4.50.0100.06012.01
5.4.40.0080.05312.00
5.4.30.0100.04711.99
5.4.20.0080.04711.98
5.4.10.0090.04111.99
5.4.00.0120.04811.49
5.3.280.0130.04112.71
5.3.270.0120.07112.72
5.3.260.0170.07512.72
5.3.250.0080.05412.72
5.3.240.0110.04212.72
5.3.230.0110.06412.71
5.3.220.0090.04612.68
5.3.210.0110.04612.68
5.3.200.0080.05012.68
5.3.190.0140.04612.68
5.3.180.0090.04712.67
5.3.170.0110.08012.67
5.3.160.0130.05812.67
5.3.150.0090.05412.67
5.3.140.0100.05212.66
5.3.130.0140.05012.66
5.3.120.0080.05012.66
5.3.110.0120.05412.66
5.3.100.0100.04912.12
5.3.90.0120.05612.08
5.3.80.0140.05012.08
5.3.70.0060.04912.08
5.3.60.0150.04312.06
5.3.50.0120.05412.00
5.3.40.0080.05112.00
5.3.30.0140.06111.95
5.3.20.0070.05411.73
5.3.10.0150.05711.71
5.3.00.0110.06311.68

preferences:
138.52 ms | 1394 KiB | 7 Q