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.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 // si qqch est posté ($_POST = tableau) if(isset($_POST)) { // pour chaque valeur du tableau foreach ($_POST as $key => $post) { // transforme la clé (form name) en variable et attribue lui sa valeur correspondante ${$key} = strip_tags(trim($post)); } } /* $nom = ''; $prenom = ''; $mail = ''; $sexe = ''; $profession = ''; */ $tab = array('nom', 'prenom', 'mail', 'sexe', 'profession'); foreach($tab as $value) { if (!isset(${$value})) { ${$value} = ''; // die(var_dump($value)); } } 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 { 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.0190.00617.61
8.3.140.0090.00620.61
8.3.130.0080.00018.55
8.3.120.0110.00018.79
8.3.110.0050.00320.94
8.3.100.0090.00618.34
8.3.90.0080.00026.77
8.3.80.0060.00318.43
8.3.70.0110.00718.43
8.3.60.0180.00718.18
8.3.50.0110.00522.11
8.3.40.0140.00718.67
8.3.30.0070.01118.71
8.3.20.0060.00320.14
8.3.10.0050.00321.59
8.3.00.0040.00420.55
8.2.250.0050.00518.17
8.2.240.0030.00618.93
8.2.230.0040.00422.58
8.2.220.0060.00324.06
8.2.210.0150.00426.77
8.2.200.0080.00316.25
8.2.190.0060.00916.58
8.2.180.0150.00616.32
8.2.170.0150.00322.96
8.2.160.0070.01321.11
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00022.09
8.2.120.0040.00426.35
8.2.110.0040.00422.23
8.2.100.0110.00017.72
8.2.90.0040.00418.22
8.2.80.0000.00917.97
8.2.70.0000.00817.80
8.2.60.0020.00718.22
8.2.50.0070.00318.10
8.2.40.0040.00421.09
8.2.30.0050.00519.32
8.2.20.0050.00217.71
8.2.10.0030.00618.07
8.2.00.0000.00717.98
8.1.300.0060.00316.19
8.1.290.0090.00030.84
8.1.280.0110.00425.92
8.1.270.0080.00023.83
8.1.260.0040.00428.09
8.1.250.0050.00228.09
8.1.240.0030.00624.02
8.1.230.0040.00820.93
8.1.220.0000.00917.78
8.1.210.0000.00918.77
8.1.200.0040.00417.23
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0000.00818.76
8.1.160.0040.00418.77
8.1.150.0050.00218.89
8.1.140.0040.00419.63
8.1.130.0050.00217.70
8.1.120.0030.00417.48
8.1.110.0040.00417.39
8.1.100.0040.00417.36
8.1.90.0000.00817.36
8.1.80.0030.00517.39
8.1.70.0030.00317.51
8.1.60.0000.00817.54
8.1.50.0060.00317.57
8.1.40.0040.00417.42
8.1.30.0000.00817.60
8.1.20.0040.00417.57
8.1.10.0000.00717.48
8.1.00.0000.00817.41
8.0.300.0040.00419.94
8.0.290.0060.00316.63
8.0.280.0080.00018.51
8.0.270.0000.00717.25
8.0.260.0030.00317.13
8.0.250.0030.00316.94
8.0.240.0070.00317.00
8.0.230.0030.00616.97
8.0.220.0030.00316.90
8.0.210.0030.00316.85
8.0.200.0070.00016.93
8.0.190.0050.00317.02
8.0.180.0080.00016.91
8.0.170.0000.00816.91
8.0.160.0000.00816.94
8.0.150.0030.00316.74
8.0.140.0030.00316.86
8.0.130.0000.00513.31
8.0.120.0050.00216.82
8.0.110.0070.00016.94
8.0.100.0000.00716.93
8.0.90.0040.00416.68
8.0.80.0040.01116.78
8.0.70.0070.00016.78
8.0.60.0000.00716.78
8.0.50.0040.00416.89
8.0.30.0100.00917.21
8.0.20.0130.00617.40
8.0.10.0040.00417.06
8.0.00.0000.01716.81
7.4.330.0030.00315.08
7.4.320.0060.00016.42
7.4.300.0060.00016.59
7.4.290.0030.00616.39
7.4.280.0040.00416.48
7.4.270.0000.00716.62
7.4.260.0080.00416.45
7.4.250.0000.00816.47
7.4.240.0030.00316.49
7.4.230.0000.00716.66
7.4.220.0030.01516.65
7.4.210.0090.00616.64
7.4.200.0030.00316.41
7.4.160.0050.01116.30
7.4.150.0080.00817.40
7.4.140.0130.00317.86
7.4.130.0080.00816.39
7.4.120.0110.00616.60
7.4.110.0110.00816.45
7.4.100.0080.00816.46
7.4.90.0190.00316.45
7.4.80.0110.00519.39
7.4.70.0090.00916.51
7.4.60.0120.00316.51
7.4.50.0120.00616.42
7.4.40.0030.01316.32
7.4.30.0060.01016.43
7.4.00.0060.01014.94
7.3.330.0020.00213.09
7.3.320.0030.00313.27
7.3.310.0070.00016.39
7.3.300.0030.00316.24
7.3.290.0100.00816.32
7.3.280.0090.01016.33
7.3.270.0120.00617.40
7.3.260.0110.00816.53
7.3.250.0060.01316.49
7.3.240.0140.00716.33
7.3.230.0060.01016.54
7.3.210.0060.01016.26
7.3.200.0130.00416.43
7.3.190.0130.00616.27
7.3.180.0110.01116.38
7.3.170.0060.00916.65
7.3.160.0040.01216.36
7.3.120.0060.01114.77
7.3.110.0050.01114.79
7.3.100.0060.00914.79
7.3.90.0070.00714.93
7.3.80.0060.00914.90
7.3.70.0040.00714.73
7.3.60.0060.00614.83
7.3.50.0040.00814.86
7.3.40.0030.01114.84
7.3.30.0070.00514.82
7.3.20.0070.00616.60
7.3.10.0070.00716.67
7.3.00.0080.00616.71
7.2.330.0070.01516.44
7.2.320.0120.00916.57
7.2.310.0070.01616.46
7.2.300.0090.00616.63
7.2.290.0040.01216.90
7.2.250.0050.01314.98
7.2.240.0100.00814.97
7.2.230.0090.00514.93
7.2.220.0060.00714.96
7.2.210.0070.00915.08
7.2.200.0030.00914.84
7.2.190.0050.00915.02
7.2.180.0050.00815.08
7.2.170.0080.00715.13
7.2.160.0080.00515.15
7.2.150.0070.00316.92
7.2.140.0040.00817.03
7.2.130.0050.00916.94
7.2.120.0060.00716.80
7.2.110.0080.00616.88
7.2.100.0080.00516.74
7.2.90.0070.00416.75
7.2.80.0110.00316.98
7.2.70.0070.00916.90
7.2.60.0080.00517.02
7.2.50.0060.00816.75
7.2.40.0000.01416.97
7.2.30.0070.00916.87
7.2.20.0050.00816.82
7.2.10.0030.01316.87
7.2.00.0020.01317.66
7.1.330.0050.00815.77
7.1.320.0050.00615.78
7.1.310.0060.00715.79
7.1.300.0060.00615.73
7.1.290.0070.00615.72
7.1.280.0050.00715.68
7.1.270.0050.00915.73
7.1.260.0050.00715.77
7.1.250.0000.01315.76
7.1.240.0070.00715.94
7.1.230.0030.01315.48
7.1.220.0060.00615.43
7.1.210.0060.00315.81
7.1.200.0050.00915.59
7.1.190.0070.00715.93
7.1.180.0070.00715.48
7.1.170.0090.00315.70
7.1.160.0060.00916.01
7.1.150.0040.01215.75
7.1.140.0090.00615.87
7.1.130.0000.00915.93
7.1.120.0060.00615.87
7.1.110.0000.00915.91
7.1.100.0040.00916.94
7.1.90.0000.01015.89
7.1.80.0040.01115.75
7.1.70.0040.00716.29
7.1.60.0080.01017.91
7.1.50.0070.00715.73
7.1.40.0040.00815.78
7.1.30.0110.00715.95
7.1.20.0070.00715.68
7.1.10.0040.00415.70
7.1.00.0050.04319.09
7.0.330.0060.00915.14
7.0.320.0030.01015.60
7.0.310.0000.01415.12
7.0.300.0040.00715.39
7.0.290.0030.01015.50
7.0.280.0030.01015.48
7.0.270.0090.00615.34
7.0.260.0000.01215.61
7.0.250.0000.01415.49
7.0.240.0030.01015.54
7.0.230.0040.01115.24
7.0.220.0040.01115.49
7.0.210.0070.00715.40
7.0.200.0010.00816.17
7.0.190.0030.00615.39
7.0.180.0000.00815.41
7.0.170.0080.00815.54
7.0.160.0030.01215.45
7.0.150.0090.00015.41
7.0.140.0100.00315.53
7.0.130.0030.00615.29
7.0.120.0070.00715.57
7.0.110.0030.01015.25
7.0.100.0060.00315.13
7.0.90.0060.00615.47
7.0.80.0070.01015.21
7.0.70.0050.03418.73
7.0.60.0000.04718.66
7.0.50.0170.02518.93
7.0.40.0150.04217.76
7.0.30.0080.03317.84
7.0.20.0080.03317.77
7.0.10.0080.03117.86
7.0.00.0050.03917.78
5.6.400.0110.00314.44
5.6.390.0030.01014.61
5.6.380.0070.00714.03
5.6.370.0000.01314.41
5.6.360.0040.00714.30
5.6.350.0090.00613.98
5.6.340.0030.00614.42
5.6.330.0030.01014.64
5.6.320.0120.00314.56
5.6.310.0060.00614.38
5.6.300.0070.00714.41
5.6.290.0000.01314.68
5.6.280.0050.03817.61
5.6.270.0090.00614.37
5.6.260.0070.00314.48
5.6.250.0100.00014.41
5.6.240.0100.00314.61
5.6.230.0030.00914.64
5.6.220.0070.03217.40
5.6.210.0080.04317.52
5.6.200.0110.03517.90
5.6.190.0080.03017.87
5.6.180.0080.03117.76
5.6.170.0050.03417.67
5.6.160.0060.03817.62
5.6.150.0080.03217.70
5.6.140.0130.02817.75
5.6.130.0050.03617.73
5.6.120.0100.03317.70
5.6.110.0070.03317.76
5.6.100.0060.03517.74
5.6.90.0060.03517.80
5.6.80.0080.03317.41
5.6.70.0040.03717.40
5.6.60.0060.03117.24
5.6.50.0100.03017.54
5.6.40.0020.04217.22
5.6.30.0100.03217.46
5.6.20.0150.02517.32
5.6.10.0070.03317.33
5.6.00.0080.03217.26
5.5.380.0040.00814.16
5.5.370.0080.00814.36
5.5.360.0090.03417.49
5.5.350.0200.03717.28
5.5.340.0120.02717.51
5.5.330.0090.03017.61
5.5.320.0100.03217.60
5.5.310.0070.03417.61
5.5.300.0080.03217.52
5.5.290.0100.03217.63
5.5.280.0080.03317.67
5.5.270.0050.03517.57
5.5.260.0070.04117.57
5.5.250.0070.03617.42
5.5.240.0100.03017.30
5.5.230.0050.03517.19
5.5.220.0070.03117.28
5.5.210.0130.02817.31
5.5.200.0120.03017.34
5.5.190.0050.03117.36
5.5.180.0080.03017.28
5.5.170.0090.00614.40
5.5.160.0030.03717.09
5.5.150.0110.02817.20
5.5.140.0020.03317.12
5.5.130.0080.03017.12
5.5.120.0030.03317.24
5.5.110.0090.03617.25
5.5.100.0070.03017.14
5.5.90.0050.03017.29
5.5.80.0110.02317.16
5.5.70.0070.04117.28
5.5.60.0080.03317.28
5.5.50.0040.03117.10
5.5.40.0080.02817.13
5.5.30.0130.02617.16
5.5.20.0120.02917.05
5.5.10.0170.02517.07
5.5.00.0070.03317.01

preferences:
34.76 ms | 403 KiB | 5 Q