3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $con=mysqli_connect("localhost", "root", "Howismy1975", "testevent"); $companyname = isset($_POST["companyname"]) ? $_POST['companyname'] : 'companyname'; $contactname = isset($_POST["contactname"]) ? $_POST['contactname'] : 'contactname'; $conphonenumber = isset($_POST["conphonenumber"]) ? $_POST['conphonenumber'] : 'conphonenumber'; $conemail = isset($_POST["conemail"]) ? $_POST['conemail'] : 'conemail'; $conaddress = isset($_POST["conaddress"]) ? $_POST['conaddress'] : 'conaddress'; $conpostcode = isset($_POST["conpostcode"]) ? $_POST['conpostcode'] : 'conpostcode'; $statement = mysqli_prepare($con, "INSERT INTO client(companyname, contactname, conphonenumber, conemail, conaddress, conpostcode) VALUES (?, ?, ?, ?, ?, ?)"); mysqli_stmt_bind_param($statement, "ssssss", $companyname, $contactname, $conphonenumber, $conemail, $conaddress, $conpostcode); mysqli_stmt_execute($statement); mysqli_stmt_close($statement); mysqli_close($con); ?>

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.3.10.0070.00716.51
7.3.00.0000.01516.48
7.2.130.0110.00316.88
7.2.120.0090.00616.86
7.2.110.0070.00716.72
7.2.100.0060.00916.53
7.2.90.0100.00616.88
7.2.80.0030.01016.56
7.2.70.0030.01016.84
7.2.60.0060.00816.84
7.2.50.0060.00616.71
7.2.40.0090.00616.77
7.2.30.0090.00616.59
7.2.20.0000.01616.87
7.2.10.0080.00816.52
7.2.00.0080.00618.13
7.1.250.0100.00715.41
7.1.200.0030.01015.50
7.1.100.0090.00318.05
7.1.70.0070.00016.75
7.1.60.0110.01419.13
7.1.50.0070.01716.88
7.1.00.0030.07322.45
7.0.200.0000.00716.64
7.0.60.0130.07719.93
7.0.50.0100.05017.94
7.0.40.0030.04720.02
7.0.30.0370.07720.18
7.0.20.0430.06720.04
7.0.10.0070.07720.09
7.0.00.0070.08320.13
5.6.280.0000.06720.98
5.6.210.0070.08020.55
5.6.200.0130.04718.22
5.6.190.0170.07020.42
5.6.180.0070.08020.58
5.6.170.0300.05020.48
5.6.160.0130.04720.34
5.6.150.0030.04318.19
5.6.140.0100.08018.11
5.6.130.0130.07718.07
5.6.120.0070.06721.15
5.6.110.0130.03720.96
5.6.100.0070.08721.13
5.6.90.0170.07321.13
5.6.80.0100.06320.33
5.5.350.4030.04020.39
5.5.340.0130.07318.00
5.5.330.0070.05020.16
5.5.320.0370.06720.29
5.5.310.0230.03320.32
5.5.300.0070.03717.96
5.5.290.0030.06718.01
5.5.280.0070.04720.88
5.5.270.0030.08720.77
5.5.260.0070.08020.87
5.5.250.0030.04020.62
5.5.240.0170.04020.04
5.4.450.0900.07319.52
5.4.440.0870.06019.59
5.4.430.0700.07019.27
5.4.420.0830.07719.26
5.4.410.0730.06319.39
5.4.400.0430.07319.25
5.4.390.0170.05319.16
5.4.380.0630.05019.31
5.4.370.0770.06718.79
5.4.360.0730.06019.16
5.4.350.0770.04718.79
5.4.340.0630.06718.81
5.4.320.0630.06718.91
5.4.310.0800.05319.28
5.4.300.0700.04718.80
5.4.290.0570.05719.14
5.4.280.0600.06019.12
5.4.270.0500.05718.91
5.4.260.0530.04719.14
5.4.250.0600.04718.91
5.4.240.0500.06019.27
5.4.230.0630.05019.07
5.4.220.0470.05719.15
5.4.210.0500.05318.98
5.4.200.0670.05019.14
5.4.190.0400.06318.78
5.4.180.0130.06018.91
5.4.170.0700.06318.78
5.4.160.0700.05019.20
5.4.150.0730.05319.28
5.4.140.0600.04016.34
5.4.130.0700.05016.42
5.4.120.0530.05016.22
5.4.110.0500.05716.45
5.4.100.0770.05016.29
5.3.290.0700.06014.47
5.3.280.0430.05714.48
5.3.270.0400.05714.57
5.3.260.0600.06014.50
5.3.250.0630.05314.55
5.3.240.0500.06014.50
5.3.230.0500.05314.47
5.3.220.0600.05314.44
5.3.210.0470.06314.54
5.3.200.0700.06314.67