3v4l.org

run code in 300+ PHP versions simultaneously
<?php $db = new SQLite3(':memory:'); $db->exec("CREATE TABLE Dogs (Id INTEGER PRIMARY KEY, Breed TEXT, Name TEXT, Age INTEGER)"); $sth = $db->prepare("INSERT INTO Dogs (Breed, Name, Age) VALUES (:breed,:name,:age)"); $sth->bindValue(':breed', 'canis', SQLITE3_TEXT); $sth->bindValue(':name', 'jack', SQLITE3_TEXT); $sth->bindValue(':age', 7, SQLITE3_INTEGER); $sth->execute(); $sth->clear(); //this is supposed to clear bindings! $sth->reset(); $sth->bindValue(':breed', 'russel', SQLITE3_TEXT); $sth->bindValue(':age', 3, SQLITE3_INTEGER); $sth->execute(); $res = $db->query('SELECT * FROM Dogs'); while (($row = $res->fetchArray(SQLITE3_ASSOC))) { var_dump($row); }

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.0070.01119.18
8.3.50.0090.00918.65
8.3.40.0120.00319.61
8.3.30.0080.00819.13
8.3.20.0050.00321.07
8.3.10.0090.00022.60
8.3.00.0090.00018.25
8.2.180.0170.00017.50
8.2.170.0060.00919.70
8.2.160.0070.00722.96
8.2.150.0060.00325.66
8.2.140.0080.00024.66
8.2.130.0090.00023.02
8.2.120.0070.00026.35
8.2.110.0060.00320.07
8.2.100.0040.00818.50
8.2.90.0000.00918.59
8.2.80.0040.00418.55
8.2.70.0040.00418.63
8.2.60.0040.00418.66
8.2.50.0000.00918.13
8.2.40.0040.00421.20
8.2.30.0000.00819.99
8.2.20.0030.00618.42
8.2.10.0000.00818.80
8.2.00.0040.00418.75
8.1.280.0160.00625.92
8.1.270.0030.00624.71
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0000.01019.76
8.1.230.0080.00421.72
8.1.220.0040.00418.41
8.1.210.0120.00419.12
8.1.200.0090.00017.85
8.1.190.0090.00017.97
8.1.180.0070.00418.10
8.1.170.0040.00419.32
8.1.160.0000.00722.94
8.1.150.0040.00419.63
8.1.140.0040.00420.23
8.1.130.0000.00718.43
8.1.120.0040.00418.19
8.1.110.0000.00818.27
8.1.100.0040.00418.19
8.1.90.0030.00618.24
8.1.80.0040.00418.16
8.1.70.0060.00318.20
8.1.60.0000.00818.37
8.1.50.0040.00418.32
8.1.40.0050.00318.27
8.1.30.0030.00618.30
8.1.20.0030.00618.44
8.1.10.0040.00418.36
8.1.00.0090.00018.26
8.0.300.0000.00920.78
8.0.290.0040.00417.50
8.0.280.0050.00319.18
8.0.270.0000.00717.87
8.0.260.0030.00318.02
8.0.250.0030.00317.75
8.0.240.0070.00017.68
8.0.230.0040.00417.73
8.0.220.0000.00817.62
8.0.210.0080.00017.57
8.0.200.0030.00317.72
8.0.190.0050.00317.56
8.0.180.0110.00017.70
8.0.170.0040.00417.61
8.0.160.0000.00817.70
8.0.150.0070.00017.70
8.0.140.0030.00617.48
8.0.130.0060.00014.12
8.0.120.0080.00017.64
8.0.110.0040.00417.61
8.0.100.0040.00417.74
8.0.90.0040.00417.64
8.0.80.0090.00917.73
8.0.70.0040.00417.50
8.0.60.0040.00417.77
8.0.50.0050.00317.75
8.0.30.0140.00517.68
8.0.20.0120.01117.93
8.0.10.0000.00817.55
8.0.00.0140.00717.47
7.4.330.0000.00615.08
7.4.320.0000.00717.39
7.4.300.0000.00717.31
7.4.290.0040.00417.25
7.4.280.0040.00417.39
7.4.270.0040.00417.32
7.4.260.0000.00817.28
7.4.250.0050.00217.17
7.4.240.0000.00717.38
7.4.230.0050.00217.47
7.4.220.0000.01717.35
7.4.210.0060.01517.28
7.4.200.0040.00417.30
7.4.160.0130.00317.31
7.4.150.0150.01217.40
7.4.140.0110.01117.86
7.4.130.0100.00817.26
7.4.120.0150.00617.34
7.4.110.0070.01116.96
7.4.100.0030.01417.21
7.4.90.0000.02017.30
7.4.80.0100.00719.39
7.4.70.0100.01317.13
7.4.60.0100.01317.11
7.4.50.0150.00317.19
7.4.40.0100.00617.39
7.4.30.0130.00317.28
7.4.00.0060.01215.58
7.3.330.0000.00513.90
7.3.320.0070.00013.83
7.3.310.0030.00516.82
7.3.300.0030.00316.87
7.3.290.0110.00616.95
7.3.280.0110.00816.97
7.3.270.0100.00817.40
7.3.260.0160.00517.19
7.3.250.0120.01117.09
7.3.240.0100.01117.10
7.3.230.0090.01117.07
7.3.210.0160.00717.01
7.3.200.0140.00719.39
7.3.190.0170.00716.89
7.3.180.0160.00616.98
7.3.170.0100.00717.35
7.3.160.0090.00917.06
7.3.120.0120.00315.32
7.3.110.0030.01715.22
7.3.100.0040.01415.49
7.3.90.0080.00815.55
7.3.80.0090.00615.23
7.3.70.0000.01815.69
7.3.60.0060.01015.55
7.3.50.0000.01115.61
7.3.40.0030.00915.49
7.3.30.0150.00015.32
7.3.20.0040.01517.30
7.3.10.0060.00317.23
7.3.00.0030.01216.98
7.2.330.0090.00917.14
7.2.320.0140.01017.10
7.2.310.0070.01117.02
7.2.300.0030.01517.18
7.2.290.0070.01117.20
7.2.250.0070.01315.71
7.2.240.0150.00315.92
7.2.230.0100.00315.48
7.2.220.0120.00315.73
7.2.210.0080.00615.51
7.2.200.0040.01115.50
7.2.190.0030.01015.57
7.2.180.0060.00615.87
7.2.170.0130.00315.66
7.2.60.0090.00617.39
7.2.00.0080.00419.86
7.1.330.0070.01016.65
7.1.320.0030.01016.52
7.1.310.0070.00716.36
7.1.300.0120.00316.27
7.1.290.0070.01016.43
7.1.280.0030.01316.62
7.1.270.0060.00916.02
7.1.260.0060.00616.21
7.1.200.0000.01116.42
7.1.100.0000.01118.76
7.1.70.0070.00017.61
7.1.60.0110.00419.87
7.1.50.0070.01417.48
7.1.00.0030.07722.41
7.0.200.1100.00015.36
7.0.80.0030.06720.00
7.0.70.1200.06020.12
7.0.60.1270.05320.09
7.0.50.1270.06020.46
7.0.40.1200.06020.35
7.0.30.1400.05720.47
7.0.20.1230.06720.43
7.0.10.1170.06320.30
7.0.00.1300.05320.33
5.6.280.0130.06721.17
5.6.230.0770.05020.74
5.6.220.1030.06020.58
5.6.210.1170.04320.61
5.6.200.0970.06721.16
5.6.190.1070.05021.16
5.6.180.1070.05321.14
5.6.170.0970.06321.23
5.6.160.1000.05721.27
5.6.150.1030.05721.27
5.6.140.1070.05721.17
5.6.130.1070.06721.18
5.6.120.0170.06021.28
5.6.110.0500.07021.16
5.6.100.1070.06321.22
5.6.90.1030.06721.26
5.6.80.1200.07020.55
5.6.70.1030.06720.61
5.6.60.1100.05720.64
5.6.50.1030.06020.58
5.6.40.1170.05320.60
5.6.30.1330.07020.50
5.6.20.1000.06320.53
5.6.10.1170.04720.52
5.6.00.1000.06020.44
5.5.370.0100.06320.72
5.5.360.1130.05020.56
5.5.350.1100.05720.49
5.5.340.1000.05721.02
5.5.330.1100.05720.99
5.5.320.1030.05721.02
5.5.310.1030.05720.91
5.5.300.1070.06020.77
5.5.290.1030.06320.92
5.5.280.0170.05721.04
5.5.270.1200.06020.83
5.5.260.1170.05021.00
5.5.250.1070.06320.61
5.5.240.1200.05320.33
5.5.230.1400.07320.12
5.5.220.1370.07020.37
5.5.210.1200.05320.32
5.5.200.1030.05720.27
5.5.190.1030.06020.27
5.5.180.1370.07320.36
5.5.160.1000.05720.34
5.5.150.1100.05320.32
5.5.140.1000.06020.24
5.5.130.1100.04720.26
5.5.120.0930.06020.36
5.5.110.1000.07720.36
5.5.100.1130.05320.18
5.5.90.1130.05020.21
5.5.80.1070.05320.28
5.5.70.1100.06320.21
5.5.60.1030.06020.24
5.5.50.1100.05020.22
5.5.40.1000.06020.26
5.5.30.0970.06020.15
5.5.20.1000.05720.12
5.5.10.1170.04320.14
5.5.00.1170.04020.17

preferences:
71.43 ms | 401 KiB | 5 Q