3v4l.org

run code in 300+ PHP versions simultaneously
<?php $db = array( 'host' => 'mysql.hostinger.nl', 'user' => 'u126267875_pepe', 'pass' => 'com-puter', 'dbname' => 'u126267875_medal' ); if (!mysql_connect($db['host'], $db['user'], $db['pass'])){ $_SESSION['foutcode'] = 'foutcode 002'; header('location: http://medalwars.url.ph/'); exit(); }elseif (!mysql_select_db($db['dbname'])){ $_SESSION['foutcode'] = 'foutcode 003'; header("location: $before"); exit(); } if($before == 'http://medalwars.url.ph/create_account/'){ if(empty($username) AND empty($password) AND empty($password2) AND empty($email){ $_SESSION['foutcode'] = 'foutcode 007'; header("location: $before"); exit(); }elseif(empty($username) AND empty($password)){ $_SESSION['foutcode'] = 'foutcode 012'; header("location: $before"); exit(); }elseif(empty($username) AND empty($email)){ $_SESSION['foutcode'] = 'foutcode 013'; header("location: $before"); exit(); }elseif(empty($password) AND empty($email)){ $_SESSION['foutcode'] = 'foutcode 014'; header("location: $before"); exit(); }elseif(empty($username)){ $_SESSION['foutcode'] = 'foutcode 005'; header("location: $before"); exit(); }elseif(empty($password)){ $_SESSION['foutcode'] = 'foutcode 006'; header("location: $before"); exit(); }elseif(empty($password2)){ $_SESSION['foutcode'] = 'foutcode 015'; header("location: $before"); exit(); }elseif(empty($email)){ $_SESSION['foutcode'] = 'foutcode 016'; header("location: $before"); exit(); }elseif($password <> $password2){ $_SESSION['foutcode'] = 'foutcode 017'; header("location: $before"); exit(); }elseif(strlen($username < 6)){ $_SESSION['foutcode'] = 'foutcode 018'; header("location: $before"); exit(); }elseif(strlen($password < 8)){ $_SESSION['foutcode'] = 'foutcode 019'; header("location: $before"); exit(); } }elseif($before == 'http://medalwars.url.ph/'){ if(empty($username) AND empty($password)){ $_SESSION['foutcode'] = 'foutcode 007'; header("location: $before"); exit(); }elseif(empty($username)){ $_SESSION['foutcode'] = 'foutcode 005'; header("location: $before"); exit(); }elseif(empty($password)){ $_SESSION['foutcode'] = 'foutcode 006'; header("location: $before"); exit(); } } ?>

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.5.120.0130.07317.29
5.5.110.0100.05317.31
5.5.100.0100.06017.24
5.5.90.0070.06017.19
5.5.80.0000.05017.23
5.5.70.0100.07317.20
5.5.60.0030.07317.19
5.5.50.0070.07317.32
5.5.40.0030.08017.23
5.5.30.0070.06317.18
5.5.20.0100.03717.30
5.5.10.0030.04017.21
5.5.00.0070.03717.25
5.4.280.0100.07719.01
5.4.270.0100.07019.13
5.4.260.0030.04719.09
5.4.250.0070.08019.02
5.4.240.0170.06719.09
5.4.230.0030.08019.00
5.4.220.0070.05019.13
5.4.210.0070.06719.09
5.4.200.0030.08019.02
5.4.190.0070.04019.12
5.4.180.0030.05019.00
5.4.170.0130.03019.09
5.4.160.0030.04019.04
5.4.150.0070.03718.87
5.4.140.0030.04016.33
5.4.130.0100.07716.46
5.4.120.0100.07016.29
5.4.110.0130.07016.32
5.4.100.0070.07716.23
5.4.90.0030.06316.43
5.4.80.0070.07016.22
5.4.70.0070.07716.42
5.4.60.0070.07316.53
5.4.50.0030.06716.38
5.4.40.0000.07716.43
5.4.30.0030.04316.45
5.4.20.0030.06716.41
5.4.10.0130.04716.53
5.4.00.0000.05315.88
5.3.280.0030.04714.58
5.3.270.0070.07314.59
5.3.260.0070.05014.55
5.3.250.0030.04314.55
5.3.240.0170.04714.45
5.3.230.0030.07714.57
5.3.220.0130.06014.35
5.3.210.0100.07714.52
5.3.200.0130.07314.48
5.3.190.0070.04314.52
5.3.180.0100.07314.65
5.3.170.0030.07714.54
5.3.160.0070.05314.54
5.3.150.0070.04314.48
5.3.140.0100.03714.53
5.3.130.0070.08014.52
5.3.120.0070.08014.48
5.3.110.0070.07014.49
5.3.100.0100.07013.96
5.3.90.0030.04313.96
5.3.80.0070.04713.96
5.3.70.0130.07013.95
5.3.60.0070.06313.92
5.3.50.0030.08013.72
5.3.40.0000.04013.91
5.3.30.0100.03713.68
5.3.20.0030.05313.65
5.3.10.0030.07713.73
5.3.00.0170.04713.40

preferences:
139.7 ms | 1394 KiB | 7 Q