3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <head> <title>E-permanence</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Cache-Control " content="no-cache"> <style> label { display:block; margin: 20px 0 5px 0; } </style> </head> <body> <h1>Inscription</h1> <form name="form" method="post" action="$valeurs ternaires.php"> <label for="nom">Nom*</label> <input name="nom" type="text" id="nom" maxlength="20"> <label for="prenom">Prenom*</label> <input name="prenom" type="text" id="prenom" maxlength="20"> <label for="mail">Mail*</label> <input name="mail" type="email" id="mail" maxlength="20"> <label for="sexe">Votre sexe</label> <input name="sexe" type="text" id="sexe"> <label for="profession">Votre profession</label> <input name="profession" type="text" id="profession"> <p><input type="submit" value="go"></p> </form> </body> </html> <?php $nom = isset($_POST['nom']) ? $_POST['nom'] : ""; $prenom = isset($_POST['prenom']) ? $_POST['prenom'] : ""; $mail = isset($_POST['mail']) ? $_POST['mail'] : ""; $sexe = isset($_POST['sexe']) ? $_POST['sexe'] : ""; $profession = isset($_POST['profession']) ? $_POST['profession'] : ""; // <!-- Cas 1 --> // if ($user == "" or $prenom == "" or $mail == "") { if(empty($nom) || empty($prenom) || empty($mail)) { ?> <html> <head> <title>Avertissement</title> </head> <body> <?php // header("Location:e-perm_homepprofession.php?inscription=no&prob=1"); ?> <h1>Erreur</h1> <p style="font-weight:bold; color:#990000;">Veuillez remplir tous les champs requis</p> <p><a href="e-perm_register.php">Retour</a></p> </body> </html> <?php } else { // die(var_dump($sexe)); var_dump($nom); var_dump($prenom); var_dump($mail); var_dump($sexe); var_dump($profession); } ?>

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.4.10.0040.01217.80
8.3.140.0080.00016.66
8.3.130.0000.00918.53
8.3.120.0070.01120.70
8.3.110.0090.00016.75
8.3.100.0070.00316.79
8.3.90.0130.00626.77
8.3.80.0100.00016.75
8.3.70.0040.01216.75
8.3.60.0180.00318.55
8.3.50.0060.00921.92
8.3.40.0180.00318.86
8.3.30.0060.01218.88
8.3.20.0070.00420.16
8.3.10.0050.00321.85
8.3.00.0090.00020.90
8.2.250.0080.00018.26
8.2.240.0040.01217.09
8.2.230.0030.00620.94
8.2.220.0070.00337.54
8.2.210.0070.00026.77
8.2.200.0090.00016.50
8.2.190.0040.01116.58
8.2.180.0140.00318.29
8.2.170.0150.00622.96
8.2.160.0150.00622.96
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0000.00826.16
8.2.120.0040.00426.16
8.2.110.0100.00021.12
8.2.100.0040.00817.96
8.2.90.0030.00519.58
8.2.80.0040.00418.04
8.2.70.0040.00417.80
8.2.60.0080.00018.22
8.2.50.0040.00418.16
8.2.40.0000.00920.64
8.2.30.0060.00319.25
8.2.20.0050.00317.76
8.2.10.0040.00418.13
8.2.00.0080.00018.15
8.1.300.0090.00920.17
8.1.290.0090.00030.84
8.1.280.0130.00325.92
8.1.270.0080.00023.88
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00620.83
8.1.230.0120.00019.23
8.1.220.0000.00917.74
8.1.210.0000.00818.77
8.1.200.0000.00917.22
8.1.190.0030.00517.00
8.1.180.0060.00318.10
8.1.170.0040.00418.43
8.1.160.0020.00518.86
8.1.150.0020.00518.89
8.1.140.0080.00019.51
8.1.130.0080.00017.68
8.1.120.0000.00717.38
8.1.110.0000.00817.39
8.1.100.0000.00717.49
8.1.90.0000.00817.49
8.1.80.0000.00717.49
8.1.70.0000.00717.41
8.1.60.0060.00317.55
8.1.50.0040.00417.50
8.1.40.0000.00817.58
8.1.30.0060.00317.58
8.1.20.0070.00017.63
8.1.10.0040.00417.57
8.1.00.0050.00317.52
8.0.300.0000.00720.27
8.0.290.0080.00016.59
8.0.280.0050.00318.38
8.0.270.0030.00317.33
8.0.260.0000.00617.31
8.0.250.0080.00016.85
8.0.240.0080.00016.95
8.0.230.0000.00816.96
8.0.220.0040.00416.92
8.0.210.0030.00316.80
8.0.200.0030.00316.84
8.0.190.0070.00016.99
8.0.180.0050.00316.92
8.0.170.0030.00516.99
8.0.160.0080.00016.89
8.0.150.0030.00316.70
8.0.140.0000.00716.87
8.0.130.0000.00613.30
8.0.120.0040.00416.80
8.0.110.0070.00016.84
8.0.100.0030.00516.74
8.0.90.0040.00316.94
8.0.80.0000.01516.86
8.0.70.0000.00716.74
8.0.60.0000.00816.90
8.0.50.0040.00416.80
8.0.30.0040.01617.03
8.0.20.0120.00817.40
8.0.10.0080.00017.02
8.0.00.0040.01516.75
7.4.330.0060.00016.78
7.4.320.0080.00016.62
7.4.300.0000.00716.51
7.4.290.0030.00616.59
7.4.280.0000.01116.42
7.4.270.0000.00716.54
7.4.260.0050.00516.43
7.4.250.0070.00016.63
7.4.240.0070.00016.64
7.4.230.0080.00016.59
7.4.220.0080.00816.71
7.4.210.0120.00316.45
7.4.200.0070.00016.41
7.4.160.0080.00616.64
7.4.150.0070.01017.40
7.4.140.0110.00617.86
7.4.130.0140.00716.40
7.4.120.0150.00416.60
7.4.110.0140.00316.67
7.4.100.0130.00316.41
7.4.90.0100.00716.53
7.4.80.0090.00919.39
7.4.70.0060.00916.56
7.4.60.0110.00416.54
7.4.50.0100.00716.43
7.4.40.0130.00316.66
7.4.30.0070.00916.54
7.4.10.0030.01315.18
7.4.00.0090.00914.93
7.3.330.0050.00012.93
7.3.320.0030.00313.13
7.3.310.0030.00316.05
7.3.300.0030.00316.27
7.3.290.0070.00816.26
7.3.280.0100.00616.22
7.3.270.0230.00017.40
7.3.260.0050.01216.40
7.3.250.0110.00716.28
7.3.240.0100.00916.38
7.3.230.0030.01316.54
7.3.210.0060.01216.20
7.3.200.0060.01416.23
7.3.190.0060.01216.20
7.3.180.0140.00716.29
7.3.170.0030.01216.41
7.3.160.0190.00316.52
7.3.130.0040.01414.73
7.3.120.0050.01314.90
7.3.110.0050.01214.78
7.3.100.0020.01414.46
7.3.90.0070.00614.80
7.3.80.0030.01114.71
7.3.70.0080.00714.66
7.3.60.0060.00614.77
7.3.50.0070.00714.82
7.3.40.0050.00714.71
7.3.30.0060.00914.60
7.3.20.0080.01016.66
7.3.10.0100.00716.61
7.3.00.0030.00916.28
7.2.330.0090.00916.39
7.2.320.0060.01316.55
7.2.310.0030.01716.71
7.2.300.0110.00616.50
7.2.290.0030.01216.52
7.2.260.0030.01315.11
7.2.250.0060.01315.03
7.2.240.0070.01014.89
7.2.230.0050.01214.60
7.2.220.0060.00614.84
7.2.210.0060.00514.83
7.2.200.0090.00615.11
7.2.190.0050.00815.09
7.2.180.0050.00814.86
7.2.170.0080.00515.03
7.2.160.0030.00914.89
7.2.150.0140.00716.86
7.2.140.0000.01516.77
7.2.130.0050.00516.95
7.2.120.0030.01016.64
7.2.110.0040.01516.94
7.2.100.0130.00617.00
7.2.90.0110.00316.79
7.2.80.0060.00616.85
7.2.70.0090.00916.96
7.2.60.0030.00916.76
7.2.50.0030.01016.88
7.2.40.0090.00916.61
7.2.30.0050.00516.75
7.2.20.0060.00916.96
7.2.10.0080.00416.91
7.2.00.0050.01218.14
7.1.330.0060.00915.68
7.1.320.0090.00715.46
7.1.310.0070.00715.70
7.1.300.0030.01015.72
7.1.290.0060.00915.47
7.1.280.0060.00515.54
7.1.270.0080.00615.65
7.1.260.0080.00815.62
7.1.250.0000.01215.66
7.1.240.0120.00315.59
7.1.230.0130.00315.74
7.1.220.0050.00515.60
7.1.210.0070.01015.70
7.1.200.0070.00515.66
7.1.190.0040.00715.72
7.1.180.0100.00315.72
7.1.170.0030.00615.68
7.1.160.0140.00015.86
7.1.150.0040.00415.46
7.1.140.0110.00315.36
7.1.130.0080.00815.57
7.1.120.0000.01115.75
7.1.110.0060.01115.39
7.1.100.0050.01216.68
7.1.90.0070.00715.63
7.1.80.0060.00615.56
7.1.70.0080.00316.30
7.1.60.0110.00917.75
7.1.50.0080.00415.84
7.1.40.0090.00415.58
7.1.30.0060.00315.65
7.1.20.0030.00715.50
7.1.10.0030.01015.62
7.1.00.0050.04219.06
7.0.330.0030.01015.19
7.0.320.0080.00415.45
7.0.310.0070.01115.32
7.0.300.0030.00715.36
7.0.290.0060.00815.43
7.0.280.0060.00315.29
7.0.270.0030.00915.23
7.0.260.0090.00915.20
7.0.250.0090.00915.29
7.0.240.0030.00515.28
7.0.230.0040.01115.20
7.0.220.0060.00914.96
7.0.210.0060.00915.38
7.0.200.0040.00715.89
7.0.190.0000.01115.47
7.0.180.0030.01114.98
7.0.170.0070.00415.34
7.0.160.0060.00915.40
7.0.150.0090.00415.05
7.0.140.0040.00815.16
7.0.130.0100.00315.18
7.0.120.0100.00315.36
7.0.110.0050.00315.41
7.0.100.0070.00715.43
7.0.90.0100.00315.39
7.0.80.0030.00915.18
7.0.70.0120.02818.52
7.0.60.0130.02818.45
7.0.50.0070.04518.57
7.0.40.0170.02516.89
7.0.30.0070.03717.63
7.0.20.0090.03017.76
7.0.10.0080.02917.72
7.0.00.0070.03317.76
5.6.400.0070.01014.30
5.6.390.0100.00714.45
5.6.380.0060.00314.50
5.6.370.0120.00014.37
5.6.360.0070.00714.25
5.6.350.0070.00614.39
5.6.340.0030.00914.15
5.6.330.0060.00914.16
5.6.320.0090.00614.28
5.6.310.0040.00714.61
5.6.300.0100.00314.50
5.6.290.0080.00414.55
5.6.280.0000.04617.72
5.6.270.0100.00014.48
5.6.260.0040.00414.32
5.6.250.0040.00414.36
5.6.240.0070.00714.36
5.6.230.0030.01314.22
5.6.220.0050.04017.37
5.6.210.0080.03317.44
5.6.200.0100.03117.82
5.6.190.0070.04017.65
5.6.180.0050.03517.63
5.6.170.0110.03317.65
5.6.160.0110.03017.73
5.6.150.0070.03517.86
5.6.140.0030.03717.75
5.6.130.0100.03317.71
5.6.120.0090.03417.80
5.6.110.0050.03817.74
5.6.100.0130.02817.65
5.6.90.0070.03517.85
5.6.80.0110.02817.33
5.6.70.0080.03317.36
5.6.60.0120.03717.39
5.6.50.0060.03317.27
5.6.40.0070.03317.33
5.6.30.0030.03517.47
5.6.20.0080.03217.26
5.6.10.0080.04017.36
5.6.00.0080.04017.39
5.5.380.0030.01014.27
5.5.370.0100.00014.21
5.5.360.0100.03417.11
5.5.350.0100.03517.25
5.5.340.0150.03717.48
5.5.330.0070.04017.49
5.5.320.0100.03717.51
5.5.310.0050.03717.50
5.5.300.0130.02717.38
5.5.290.0100.04417.44
5.5.280.0080.03217.44
5.5.270.0080.03517.49
5.5.260.0070.03617.50
5.5.250.0080.03817.34
5.5.240.0080.03317.35
5.5.230.0100.04017.12
5.5.220.0150.03717.23
5.5.210.0090.03217.42
5.5.200.0100.03017.32
5.5.190.0110.03017.28
5.5.180.0080.03017.13
5.5.170.0040.01114.31
5.5.160.0050.04317.18
5.5.150.0090.03017.21
5.5.140.0050.03616.99
5.5.130.0080.04017.08
5.5.120.0080.03317.12
5.5.110.0110.03017.25
5.5.100.0110.02816.99
5.5.90.0100.03217.16
5.5.80.0050.03117.13
5.5.70.0030.03617.12
5.5.60.0120.03316.98
5.5.50.0070.03216.98
5.5.40.0100.02816.94
5.5.30.0050.03217.21
5.5.20.0070.03017.12
5.5.10.0110.02517.09
5.5.00.0070.03217.17

preferences:
48.26 ms | 403 KiB | 5 Q