3v4l.org

run code in 300+ PHP versions simultaneously
<?php if($_SERVER['REQUEST_METHOD']=="POST") { // je formulier is verstuurd! We kijken nu of alles gevalideerd kan worden! $errors = array(); // de array-container is aangemaakt. if (empty($_POST["Achternaam"])) { $errors[] = 'Vul een achternaam in'; } if (empty($_POST["Email"])) { $errors[] = 'Vul een email adres in'; } if (empty($_POST["Soort"])) { $errors[] = 'Vul de rede van contact in'; } if(count($errors)==0) { // er zijn geen foutmeldingen opgeroepen, zorg dat alles gemaild wordt. } else { // er zijn één of meer foutmeldingen teruggegeven. We laten ze stuk voor stuk voor de gebruiker zien! echo "<ul>"; foreach ($errors as $error) { echo "<li>.$error.</li>".PHP_EOL; } echo "</ul>"; } } ?> <form action="" method="POST"> <table> <tr> <td><label for="Geslacht">Geslacht:*</label></td> <td id="blok"><select name="Geslacht" id="Geslacht"> <option value="Select" selected="selected" disabled="disabled">---Selecteer--- </option> <option value="Man">Man</option> <option value="Vrouw">Vrouw</option> </select> </td> <td><label for="Soort">Soort bericht:*</label></td> <td><select name="Soort" id="Soort"> <option value="Select" selected="selected" disabled="disabled">---Selecteer---</option> <option value="Vraag">Vraag</option> <option value="Compliment">Compliment</option> <option value="Opmerking">Opmerking</option> </select> </td> </tr> <tr> <td><label for="name">Voornaam:*</label></td> <td><input type="text" id="Voornaam" name="Voornaam" autocomplete="off" size="27" /></td> <td><label for="Achternaam">Achternaam:*</label></td> <td><input type="text" id="Achternaam" name="Achternaam" autocomplete="off" size="27" /></td> </tr> <tr> <td><label for="Email">E-mail:*</label></td> <td colspan="3"><input type="email" id="Email" name="Email" autocomplete="off" size="49" /></td> </tr> <tr> <td><label for="Order">Ordernr.:</label></td> <td colspan="3"><input type="text" id="Order" name="Order" autocomplete="off" size="27" /></td> </tr> <tr> <td><label for="Subject">Onderwerp*:</label></td> <td colspan="3"><input type="text" id="Subject" name="Onderwerp" autocomplete="off" size="27" /></td> </tr> <tr> <td style="vertical-align: top;"><label for="Bericht">Bericht:*</label></td> <td colspan="3"> <textarea id="Bericht" autocomplete="off" onkeyup="count_it()" name="Bericht"></textarea><br /> <input type="checkbox" value="Yes" name="Kopie" />Stuur een kopie naar mijzelf<br /> <br /> <script> function count_it() { document.getElementById('Aantal_tekens').innerHTML = document.getElementById('Bericht').value.length;} count_it(); </script> </td> </tr> <tr> <td style="vertical-align: top;"></td> <td colspan="3"><button type="submit" name="submit" value="Versturen">Versturen</button> <span id="Aantal_tekens">0</span> </td> </tr> </table> </form>

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.3.60.0130.00618.43
8.3.50.0070.01018.18
8.3.40.0040.01118.82
8.3.30.0110.01118.59
8.3.20.0040.00419.16
8.3.10.0080.00021.86
8.3.00.0050.00319.68
8.2.180.0090.00916.63
8.2.170.0110.00422.96
8.2.160.0170.00319.04
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00420.53
8.2.120.0030.00526.35
8.2.110.0060.00320.94
8.2.100.0070.00417.84
8.2.90.0050.00518.68
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0040.00418.03
8.2.50.0090.00018.10
8.2.40.0000.00920.61
8.2.30.0040.00419.26
8.2.20.0060.00318.13
8.2.10.0040.00417.98
8.2.00.0000.00818.04
8.1.280.0060.01225.92
8.1.270.0040.00423.87
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00321.12
8.1.230.0040.00719.16
8.1.220.0000.00817.79
8.1.210.0030.00618.77
8.1.200.0000.00917.23
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0030.00618.47
8.1.160.0000.00718.88
8.1.150.0040.00420.19
8.1.140.0060.00319.55
8.1.130.0000.00718.83
8.1.120.0000.00717.38
8.1.110.0000.00717.30
8.1.100.0030.00517.30
8.1.90.0040.00417.42
8.1.80.0000.00717.39
8.1.70.0000.00717.32
8.1.60.0040.00417.46
8.1.50.0080.00017.38
8.1.40.0000.00817.36
8.1.30.0040.00417.62
8.1.20.0050.00317.50
8.1.10.0000.00717.41
8.1.00.0040.00417.41
8.0.300.0070.00020.18
8.0.290.0000.00716.63
8.0.280.0000.00718.39
8.0.270.0000.00717.04
8.0.260.0000.00618.38
8.0.250.0040.00416.93
8.0.240.0030.00516.87
8.0.230.0030.00516.96
8.0.220.0040.00316.91
8.0.210.0000.00716.81
8.0.200.0070.00016.85
8.0.190.0110.00016.89
8.0.180.0000.00716.85
8.0.170.0040.00416.81
8.0.160.0030.00616.86
8.0.150.0040.00416.83
8.0.140.0040.00416.88
8.0.130.0000.00513.37
8.0.120.0040.00416.84
8.0.110.0000.00716.75
8.0.100.0030.00616.76
8.0.90.0040.00316.77
8.0.80.0080.00816.88
8.0.70.0000.00716.72
8.0.60.0030.00316.76
8.0.50.0040.00416.89
8.0.30.0140.00617.16
8.0.20.0140.01217.40
8.0.10.0070.00017.11
8.0.00.0060.01416.89
7.4.330.0000.00515.55
7.4.320.0070.00016.31
7.4.300.0030.00516.46
7.4.290.0030.00416.43
7.4.280.0000.00716.53
7.4.270.0040.00416.52
7.4.260.0080.00016.56
7.4.250.0000.00716.48
7.4.240.0070.00016.51
7.4.230.0070.00016.42
7.4.220.0030.02216.50
7.4.210.0030.01016.34
7.4.200.0000.00716.62
7.4.160.0090.01016.53
7.4.150.0080.00817.40
7.4.140.0050.01517.86
7.4.130.0030.01416.46
7.4.120.0120.00716.53
7.4.110.0080.01116.58
7.4.100.0140.00316.64
7.4.90.0030.01416.52
7.4.80.0150.00319.39
7.4.70.0100.00716.30
7.4.60.0000.01616.48
7.4.50.0040.01416.60
7.4.40.0160.00016.32
7.4.30.0130.00716.76
7.4.10.0080.00815.13
7.4.00.0080.00914.84
7.3.330.0040.00413.27
7.3.320.0050.00013.21
7.3.310.0070.00016.46
7.3.300.0000.00716.32
7.3.290.0110.00516.36
7.3.280.0090.00816.32
7.3.270.0110.00717.40
7.3.260.0150.00916.45
7.3.250.0130.00816.42
7.3.240.0100.01316.34
7.3.230.0090.00616.43
7.3.210.0090.00916.31
7.3.200.0150.00316.45
7.3.190.0030.01716.46
7.3.180.0100.00716.32
7.3.170.0120.00916.31
7.3.160.0110.00516.57
7.3.130.0030.01514.82
7.3.120.0070.00914.83
7.3.110.0120.00614.79
7.3.100.0020.00814.92
7.3.90.0130.00314.82
7.3.80.0030.00915.02
7.3.70.0050.00914.87
7.3.60.0070.00914.83
7.3.50.0030.01314.92
7.3.40.0070.00514.88
7.3.30.0050.00714.75
7.3.20.0020.01416.59
7.3.10.0090.00716.60
7.3.00.0120.00516.46
7.2.330.0120.00516.46
7.2.320.0130.01016.63
7.2.310.0070.01016.52
7.2.300.0100.00716.52
7.2.290.0030.01616.69
7.2.260.0100.00514.89
7.2.250.0110.00814.95
7.2.240.0100.00715.07
7.2.230.0080.00814.89
7.2.220.0080.00914.94
7.2.210.0040.00715.17
7.2.200.0060.00914.85
7.2.190.0050.00715.01
7.2.180.0030.00914.89
7.2.170.0070.00914.92
7.2.160.0030.00915.07
7.2.150.0040.01117.10
7.2.140.0040.00716.85
7.2.130.0070.01016.63
7.2.120.0120.00516.59
7.2.110.0040.01316.60
7.2.100.0100.00516.72
7.2.90.0070.00916.71
7.2.80.0050.00816.83
7.2.70.0070.01016.88
7.2.60.0050.00916.67
7.2.50.0130.00216.52
7.2.40.0070.01016.77
7.2.30.0050.00716.74
7.2.20.0060.00816.59
7.2.10.0110.00416.60
7.2.00.0060.00917.63
7.1.330.0060.01115.86
7.1.320.0060.00915.91
7.1.310.0030.01115.84
7.1.300.0070.00515.71
7.1.290.0020.01215.78
7.1.280.0070.00615.77
7.1.270.0100.00415.77
7.1.260.0050.01215.65
7.1.250.0080.00715.65
7.1.240.0040.00815.89
7.1.230.0040.01115.57
7.1.220.0040.00815.49
7.1.210.0070.00315.54
7.1.200.0090.00315.75
7.1.190.0070.00715.94
7.1.180.0040.00415.88
7.1.170.0030.00915.87
7.1.160.0000.00815.87
7.1.150.0060.00315.63
7.1.140.0030.01315.90
7.1.130.0000.01115.64
7.1.120.0070.00715.77
7.1.110.0060.00315.80
7.1.100.0030.00616.80
7.1.90.0040.00715.94
7.1.80.0070.00715.78
7.1.70.0100.00516.42
7.1.60.0100.00516.46
7.1.50.0100.01525.14
7.1.40.0100.01425.09
7.1.30.0310.01323.96
7.1.20.0310.00824.26
7.1.10.0080.00716.01
7.1.00.0080.00716.14
7.0.330.0060.00615.20
7.0.320.0040.01115.28
7.0.310.0030.01315.34
7.0.300.0080.00815.23
7.0.290.0070.00315.49
7.0.280.0000.01215.09
7.0.270.0060.00615.34
7.0.260.0110.00415.36
7.0.250.0080.00415.41
7.0.240.0040.01215.30
7.0.230.0000.00815.46
7.0.220.0030.01015.40
7.0.210.0050.00515.27
7.0.200.0080.00815.96
7.0.190.0150.00715.12
7.0.180.0210.01414.70
7.0.170.0030.01015.76
7.0.160.0040.01115.58
7.0.150.0080.00815.51
7.0.140.0070.00715.69
7.0.130.0000.01515.66
7.0.120.0020.00915.85
7.0.110.0070.00715.60
7.0.100.0030.01115.79
7.0.90.0020.01015.70
7.0.80.0030.01015.78
7.0.70.0050.00815.72
7.0.60.0050.01015.66
7.0.50.0060.00615.88
7.0.40.0080.00714.87
7.0.30.0020.01214.86
7.0.20.0090.00714.83
7.0.10.0030.01014.92
7.0.00.0050.00814.81
5.6.400.0000.01314.18
5.6.390.0000.01114.08
5.6.380.0090.00614.73
5.6.370.0060.00914.34
5.6.360.0040.01114.43
5.6.350.0080.00414.48
5.6.340.0060.00914.29
5.6.330.0030.01014.63
5.6.320.0000.01414.18
5.6.310.0040.01414.58
5.6.300.0060.01014.36
5.6.290.0080.00614.21
5.6.280.0070.01014.59
5.6.270.0030.01014.52
5.6.260.0030.00914.43
5.6.250.0130.00014.34
5.6.240.0000.01614.65
5.6.230.0060.00614.42
5.6.220.0060.00614.41
5.6.210.0070.01014.45
5.6.200.0060.00614.23
5.6.190.0070.00714.46
5.6.180.0100.01014.64
5.6.170.0000.00914.10
5.6.160.0100.01014.31
5.6.150.0030.01014.27
5.6.140.0060.00614.42
5.6.130.0100.00314.62
5.6.120.0130.00314.37
5.6.110.0040.01214.27
5.6.100.0040.00814.33
5.6.90.0120.00014.18
5.6.80.0080.00814.11
5.6.70.0040.01214.19
5.6.60.0060.00614.29
5.6.50.0070.01114.24
5.6.40.0070.00714.20
5.6.30.0000.01514.28
5.6.20.0070.00714.21
5.6.10.0030.00914.46
5.6.00.0100.00314.30

preferences:
62.04 ms | 400 KiB | 5 Q