3v4l.org

run code in 300+ PHP versions simultaneously
<?php$con = mysqli_connect("localhost","root","",'oefening');// Check connectionif (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); exit();if(mysqli_query($con,"INSERT INTO persons (voornaam , achternaam , leeftijd) VALUES ('Peter', 'Griffin','35')")){ echo "De query is gelukt!"; } else { echo "Please check your query and try again. The error is:" .mysqli_error($con); }mysqli_close($con);?><?php

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.0110.00416.50
8.3.50.0120.00722.87
8.3.40.0040.01118.54
8.3.30.0070.00718.91
8.3.20.0040.00420.07
8.3.10.0000.00821.84
8.3.00.0050.00317.68
8.2.180.0180.00416.38
8.2.170.0210.00022.96
8.2.160.0070.01018.79
8.2.150.0080.00824.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0030.00620.97
8.2.110.0060.00322.25
8.2.100.0030.00717.78
8.2.90.0090.00017.91
8.2.80.0060.00317.97
8.2.70.0000.00917.50
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0040.00418.22
8.2.30.0040.00417.80
8.2.20.0000.00817.47
8.2.10.0000.00817.97
8.2.00.0070.00017.54
8.1.280.0180.00325.92
8.1.270.0000.00823.96
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00320.68
8.1.230.0040.00822.70
8.1.220.0000.00917.74
8.1.210.0030.00618.89
8.1.200.0030.00617.22
8.1.190.0060.00317.10
8.1.180.0070.00018.10
8.1.170.0000.00818.46
8.1.160.0000.00721.98
8.1.150.0000.00718.73
8.1.140.0040.00417.30
8.1.130.0000.00717.75
8.1.120.0000.00717.34
8.1.110.0040.00417.26
8.1.100.0000.00717.22
8.1.90.0040.00417.27
8.1.80.0000.00717.27
8.1.70.0030.00317.22
8.1.60.0030.00617.40
8.1.50.0030.00617.39
8.1.40.0070.00017.36
8.1.30.0040.00417.34
8.1.20.0070.00017.52
8.1.10.0060.00317.38
8.1.00.0040.00417.46
8.0.300.0060.00319.91
8.0.290.0060.00316.75
8.0.280.0030.00318.43
8.0.270.0070.00017.10
8.0.260.0000.00617.10
8.0.250.0030.00316.86
8.0.240.0070.00316.71
8.0.230.0030.00716.84
8.0.220.0040.00416.78
8.0.210.0030.00316.68
8.0.200.0030.00316.76
8.0.190.0050.00316.70
8.0.180.0000.00716.71
8.0.170.0000.00816.66
8.0.160.0050.00416.73
8.0.150.0000.00716.60
8.0.140.0040.00416.68
8.0.130.0000.00813.38
8.0.120.0000.00816.77
8.0.110.0000.00716.67
8.0.100.0050.00216.62
8.0.90.0000.00816.53
8.0.80.0060.01516.70
8.0.70.0040.00416.80
8.0.60.0000.00816.59
8.0.50.0050.00316.70
8.0.30.0070.01116.89
8.0.20.0150.00817.40
8.0.10.0040.00416.88
8.0.00.0090.01216.64
7.4.330.0000.00515.09
7.4.320.0030.00316.38
7.4.300.0050.00316.34
7.4.290.0030.00316.27
7.4.280.0040.00416.36
7.4.270.0000.00816.35
7.4.260.0070.00016.48
7.4.250.0040.00416.39
7.4.240.0020.00516.41
7.4.230.0030.00316.53
7.4.220.0070.01016.50
7.4.210.0060.01216.44
7.4.200.0000.00716.56
7.4.160.0120.00316.28
7.4.150.0090.01617.40
7.4.140.0060.01117.86
7.4.130.0040.01416.45
7.4.120.0110.00716.41
7.4.110.0130.00316.34
7.4.100.0100.01016.35
7.4.90.0090.00816.28
7.4.80.0130.00319.39
7.4.70.0070.01816.28
7.4.60.0070.01316.34
7.4.50.0040.00016.11
7.4.40.0140.00716.47
7.4.30.0120.00316.32
7.3.330.0000.00613.15
7.3.320.0000.00513.20
7.3.310.0030.00316.13
7.3.300.0030.00316.23
7.3.290.0070.00616.11
7.3.280.0080.01016.15
7.3.270.0100.00717.40
7.3.260.0070.01316.42
7.3.240.0070.01416.12
7.3.230.0090.01216.39
7.3.210.0110.00516.22
7.3.200.0090.01019.39
7.3.190.0030.01316.39
7.3.180.0130.01016.38
7.3.170.0090.00616.44
7.3.160.0070.00716.46
7.2.330.0030.01916.58
7.2.320.0060.01116.23
7.2.310.0090.00916.32
7.2.300.0040.01116.59
7.2.290.0040.01216.20
5.4.320.0070.03612.45
5.4.310.0050.03812.45
5.4.300.0060.03612.45
5.4.290.0070.03512.45
5.4.280.0050.03512.34
5.4.270.0060.03512.34
5.4.260.0050.03712.34
5.4.250.0070.03612.34
5.4.240.0060.03512.34
5.4.230.0050.03712.34
5.4.220.0050.03612.34
5.4.210.0050.03912.34
5.4.200.0040.04112.34
5.4.190.0100.04212.34
5.4.180.0070.04012.33
5.4.170.0020.03912.35
5.4.160.0050.03612.34
5.4.150.0070.03812.34
5.4.140.0040.04012.02
5.4.130.0040.04112.01
5.4.120.0050.03411.96
5.4.110.0030.03611.96
5.4.100.0030.03711.96
5.4.90.0070.03711.96
5.4.80.0100.03511.96
5.4.70.0070.04711.96
5.4.60.0060.03511.96
5.4.50.0050.03411.96
5.4.40.0060.03211.95
5.4.30.0060.03611.95
5.4.20.0080.03911.95
5.4.10.0040.03811.95
5.4.00.0060.03611.43
5.3.290.0070.03912.80
5.3.280.0100.03312.71
5.3.270.0080.03912.72
5.3.260.0090.04412.72
5.3.250.0060.03912.72
5.3.240.0100.03512.72
5.3.230.0070.04112.71
5.3.220.0060.03912.68
5.3.210.0120.04112.68
5.3.200.0080.03512.68
5.3.190.0060.03712.68
5.3.180.0040.03712.67
5.3.170.0020.04012.67
5.3.160.0050.03912.67
5.3.150.0040.03912.67
5.3.140.0020.03812.66
5.3.130.0080.03612.66
5.3.120.0050.03912.66
5.3.110.0080.04012.66
5.3.100.0060.04212.12
5.3.90.0040.03712.08
5.3.80.0100.03212.07
5.3.70.0050.03512.07
5.3.60.0100.03812.06
5.3.50.0070.04012.00
5.3.40.0060.03512.00
5.3.30.0080.03211.94
5.3.20.0070.03311.72
5.3.10.0030.03511.70
5.3.00.0060.03411.68
5.2.170.0050.0299.17
5.2.160.0060.0279.17
5.2.150.0050.0299.17
5.2.140.0050.0309.17
5.2.130.0060.0279.13
5.2.120.0090.0299.13
5.2.110.0010.0319.14
5.2.100.0040.0289.13
5.2.90.0050.0289.14
5.2.80.0060.0289.13
5.2.70.0050.0309.13
5.2.60.0030.0329.09
5.2.50.0060.0279.05
5.2.40.0030.0359.02
5.2.30.0030.0309.01
5.2.20.0060.0289.00
5.2.10.0040.0288.92
5.2.00.0050.0288.77
5.1.60.0010.0278.06
5.1.50.0040.0248.05
5.1.40.0020.0268.04
5.1.30.0060.0238.39
5.1.20.0040.0268.41
5.1.10.0030.0268.13
5.1.00.0040.0258.14
5.0.50.0020.0216.61
5.0.40.0040.0256.47
5.0.30.0060.0276.28
5.0.20.0020.0196.25
5.0.10.0030.0196.23
5.0.00.0030.0306.22
4.4.90.0020.0204.78
4.4.80.0020.0174.76
4.4.70.0010.0164.75
4.4.60.0030.0224.75
4.4.50.0000.0184.77
4.4.40.0020.0264.71
4.4.30.0050.0124.76
4.4.20.0030.0204.85
4.4.10.0050.0174.85
4.4.00.0040.0234.76
4.3.110.0040.0144.67
4.3.100.0030.0234.67
4.3.90.0030.0144.64
4.3.80.0000.0274.58
4.3.70.0030.0134.63
4.3.60.0020.0154.63
4.3.50.0010.0174.63
4.3.40.0040.0224.54
4.3.30.0000.0173.28
4.3.20.0040.0133.25
4.3.10.0010.0173.22
4.3.00.0100.01315.88

preferences:
39.67 ms | 401 KiB | 5 Q