3v4l.org

run code in 300+ PHP versions simultaneously
<html> <head> <title>php oefening</title> </head> <body> <?php // Create connection $con=mysqli_connect("localhost","root","usbw", "customers"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } else { echo "Uw heeft verbinding met de database"; } echo "<br>"; //Gegevens invoegen in de tabel personen $sql = " INSERT INTO personen (Voornaam, Achternaam, Leeftijd) VALUES ('$_POST[Voornaam]', '$_POST[Achternaam]', '$_POST[Leeftijd]') "; echo $sql; /* if (!mysli_query($con, $sql)) { die('Error: ' . mysqli_error($con)); } echo "1 record toegevoegd"; mysqli_close($con); */ ?> </body> </html>

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.70.0080.00816.58
8.3.60.0120.00618.43
8.3.50.0090.01121.99
8.3.40.0140.00718.88
8.3.30.0070.00720.46
8.3.20.0040.00420.34
8.3.10.0040.00422.09
8.3.00.0040.00422.39
8.2.180.0100.00718.29
8.2.170.0110.00422.96
8.2.160.0110.00722.18
8.2.150.0050.00324.18
8.2.140.0070.01124.66
8.2.130.0070.00026.16
8.2.120.0070.00317.90
8.2.110.0000.00922.20
8.2.100.0080.00417.72
8.2.90.0000.00819.18
8.2.80.0040.00419.47
8.2.70.0040.00417.63
8.2.60.0000.00817.93
8.2.50.0030.00618.07
8.2.40.0000.00818.28
8.2.30.0080.00018.08
8.2.20.0000.00817.62
8.2.10.0040.00417.76
8.2.00.0090.00317.61
8.1.280.0100.00725.92
8.1.270.0040.00424.66
8.1.260.0000.00926.35
8.1.250.0000.00828.09
8.1.240.0090.00021.95
8.1.230.0040.00819.21
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.22
8.1.190.0060.00317.40
8.1.180.0090.00018.88
8.1.170.0040.00418.63
8.1.160.0040.00422.16
8.1.150.0050.00318.54
8.1.140.0050.00217.40
8.1.130.0030.00317.78
8.1.120.0070.00017.27
8.1.110.0070.00017.23
8.1.100.0040.00417.40
8.1.90.0040.00417.22
8.1.80.0040.00417.41
8.1.70.0000.00717.26
8.1.60.0040.00417.34
8.1.50.0070.00017.38
8.1.40.0040.00417.40
8.1.30.0000.00817.59
8.1.20.0000.00817.55
8.1.10.0030.00717.56
8.1.00.0080.00417.46
8.0.300.0070.00018.77
8.0.290.0000.00817.15
8.0.280.0030.00318.54
8.0.270.0070.00017.28
8.0.260.0000.00716.96
8.0.250.0070.00016.93
8.0.240.0000.00817.02
8.0.230.0000.00816.96
8.0.220.0000.01016.87
8.0.210.0040.00416.91
8.0.200.0000.00616.84
8.0.190.0050.00316.86
8.0.180.0060.00316.95
8.0.170.0040.00416.88
8.0.160.0040.00416.75
8.0.150.0060.00316.86
8.0.140.0030.00316.92
8.0.130.0050.00013.30
8.0.120.0000.00716.88
8.0.110.0030.00516.90
8.0.100.0040.00416.84
8.0.90.0000.00716.93
8.0.80.0060.01016.86
8.0.70.0070.00016.91
8.0.60.0040.00416.86
8.0.50.0070.00016.71
8.0.30.0080.01117.06
8.0.20.0070.01117.40
8.0.10.0040.00416.92
8.0.00.0060.01316.76
7.4.330.0000.00515.00
7.4.320.0000.00716.41
7.4.300.0000.00716.50
7.4.290.0000.00716.54
7.4.280.0000.00716.51
7.4.270.0090.00016.52
7.4.260.0040.00416.59
7.4.250.0040.00416.53
7.4.240.0040.00416.54
7.4.230.0000.00616.49
7.4.220.0130.00616.66
7.4.210.0060.00816.48
7.4.200.0000.00716.63
7.4.190.0030.00316.61
7.4.160.0040.01216.47
7.4.150.0040.01417.40
7.4.140.0130.00617.86
7.4.130.0050.01316.39
7.4.120.0120.00616.49
7.4.110.0030.01516.41
7.4.100.0070.01116.49
7.4.90.0100.00716.48
7.4.80.0120.00619.39
7.4.70.0140.00616.32
7.4.60.0060.01216.47
7.4.50.0040.00416.18
7.4.40.0040.01222.77
7.4.30.0130.00316.55
7.4.00.0060.01214.81
7.3.330.0050.00013.15
7.3.320.0000.00513.01
7.3.310.0030.00316.26
7.3.300.0030.00316.32
7.3.290.0000.02016.29
7.3.280.0040.01116.33
7.3.270.0090.00617.40
7.3.260.0110.01516.41
7.3.250.0090.00916.47
7.3.240.0100.01016.55
7.3.230.0040.01216.58
7.3.210.0100.00716.41
7.3.200.0130.00319.39
7.3.190.0100.00716.38
7.3.180.0070.01016.24
7.3.170.0120.00416.39
7.3.160.0060.00916.38
7.3.120.0080.00814.80
7.2.330.0100.00716.52
7.2.320.0120.00916.69
7.2.310.0070.01316.27
7.2.300.0110.00816.29
7.2.290.0100.01016.71
7.2.60.0120.00316.56
7.2.00.0000.01319.52
7.1.200.0040.00815.59
7.1.100.0070.00418.03
7.1.70.0080.00316.74
7.1.60.0060.01019.43
7.1.50.0160.00316.80
7.1.00.0000.06722.44
7.0.200.0000.00916.31
7.0.140.0070.07022.07
7.0.60.0130.08019.79
7.0.50.0070.05017.92
7.0.40.0130.06720.24
7.0.30.0330.06020.18
7.0.20.0300.08020.00
7.0.10.0070.08720.02
7.0.00.0030.04720.41
5.6.280.0000.07021.11
5.6.210.0100.06720.71
5.6.200.0000.04318.17
5.6.190.0070.08320.33
5.6.180.0300.07720.27
5.6.170.0270.08320.54
5.6.160.0070.04020.52
5.6.150.0130.07318.12
5.6.140.0030.04318.21
5.6.130.0130.06318.21
5.6.120.0070.04321.00
5.6.110.0000.04721.02
5.6.100.0170.06720.97
5.6.90.0000.04721.09
5.6.80.0030.05320.28
5.6.70.4370.03720.40
5.5.350.0270.07720.40
5.5.340.0100.03317.88
5.5.330.0070.06020.08
5.5.320.0230.03720.30
5.5.310.0330.07020.29
5.5.300.0100.05317.91
5.5.290.0030.04317.91
5.5.280.0130.07320.88
5.5.270.0070.05720.67
5.5.260.0100.08320.84
5.5.250.0100.08020.79
5.5.240.2800.03320.18
5.4.450.0230.05319.41
5.4.440.0730.06319.31
5.4.430.0670.06019.09
5.4.420.0770.06019.48
5.4.410.0030.06019.38
5.4.400.0870.05718.79
5.4.390.0830.05318.95
5.4.380.0170.06018.68
5.4.370.0030.05318.66
5.4.360.0170.04718.73
5.4.350.0060.03411.97
5.4.340.0070.03711.97
5.4.320.0050.03812.45
5.4.310.0060.04212.45
5.4.300.0070.04912.46
5.4.290.0060.04012.45
5.4.280.0050.04012.35
5.4.270.0070.04612.35
5.4.260.0060.04412.35
5.4.250.0110.04412.35
5.4.240.0130.04718.72
5.4.230.0200.04718.87
5.4.220.0000.06018.88
5.4.210.0100.05018.79
5.4.200.0070.05318.77
5.4.190.0070.05018.89
5.4.180.0100.05019.02
5.4.170.0100.05718.87
5.4.160.0130.04718.92
5.4.150.0130.04718.82
5.4.140.0070.05016.29
5.4.130.0030.05016.28
5.4.120.0100.04716.48
5.4.110.0100.04716.34
5.4.100.0030.05316.20
5.4.90.0100.04316.20
5.4.80.0100.04316.34
5.4.70.0130.04016.38
5.4.60.0100.04316.44
5.4.50.0000.05316.23
5.4.40.0000.05316.29
5.4.30.0070.05016.41
5.4.20.0070.04716.32
5.4.10.0130.04316.20
5.4.00.0000.05315.94
5.3.290.0090.04612.80
5.3.280.0030.05314.61
5.3.270.0130.04714.52
5.3.260.0130.05014.47
5.3.250.0230.03714.47
5.3.240.0170.04314.62
5.3.230.0030.05714.38
5.3.220.0030.05314.42
5.3.210.0100.05014.72
5.3.200.0070.05014.40
5.3.190.0070.05014.26
5.3.180.0100.04314.57
5.3.170.0130.04014.45
5.3.160.0070.05014.58
5.3.150.0100.04714.56
5.3.140.0030.05014.55
5.3.130.0100.05014.70
5.3.120.0070.05314.46
5.3.110.0070.05314.41
5.3.100.0030.05314.05
5.3.90.0030.05314.17
5.3.80.0030.06013.85
5.3.70.0070.05014.06
5.3.60.0100.04713.95
5.3.50.0070.04713.95
5.3.40.0100.06013.88
5.3.30.0030.05014.00
5.3.20.0100.06013.71
5.3.10.0030.05313.74
5.3.00.0070.06313.79
5.2.170.0070.03711.06
5.2.160.0070.04011.24
5.2.150.0000.04711.04
5.2.140.0000.04711.15
5.2.130.0000.04310.93
5.2.120.0030.04011.02
5.2.110.0030.05711.10
5.2.100.0030.04011.03
5.2.90.0170.04710.93
5.2.80.0070.04011.18
5.2.70.0000.05010.92
5.2.60.0170.03011.14
5.2.50.0070.03710.86
5.2.40.0070.03711.12
5.2.30.0030.04010.89
5.2.20.0070.04010.97
5.2.10.0070.03710.93
5.2.00.0130.03010.65
5.1.60.0000.0379.94
5.1.50.0070.03010.02
5.1.40.0000.03710.17
5.1.30.0030.03310.33
5.1.20.0000.04310.27
5.1.10.0070.03310.09
5.1.00.0000.04310.09
5.0.50.0070.0238.48
5.0.40.0000.0308.64
5.0.30.0030.0408.41
5.0.20.0070.0208.24
5.0.10.0030.0308.17
5.0.00.0000.0438.24
4.4.90.0030.0235.86
4.4.80.0100.0175.75
4.4.70.0000.0235.79
4.4.60.0030.0205.82
4.4.50.0030.0205.77
4.4.40.0000.0335.83
4.4.30.0030.0275.80
4.4.20.0030.0205.80
4.4.10.0000.0235.83
4.4.00.0030.0305.82
4.3.110.0030.0205.71
4.3.100.0000.0235.69
4.3.90.0070.0235.67
4.3.80.0000.0475.68
4.3.70.0000.0235.75
4.3.60.0030.0205.66
4.3.50.0030.0205.71
4.3.40.0030.0305.61
4.3.30.0000.0204.43
4.3.20.0000.0234.43
4.3.10.0000.0234.39
4.3.00.0030.0207.38

preferences:
54.63 ms | 401 KiB | 5 Q