3v4l.org

run code in 300+ PHP versions simultaneously
<?php $db = new SQLite3(':memory:'); $db->enableExceptions(true); $stmt = $db->prepare('SELECT :a, :b, ?;'); $a = 42; $stmt->bindParam(':a', $a, SQLITE3_INTEGER); $stmt->bindValue(':b', 'php'); $stmt->bindValue(':b', 'PHP'); $stmt->bindValue(3, 43); echo "Execute statement\n"; var_dump($res = $stmt->execute()); echo "Statement result\n"; var_dump($res->fetchArray(SQLITE3_NUM)); //$stmt->reset(); echo "Change binded values\n"; $stmt->bindValue(':a', 'TEST'); $stmt->bindValue(':b', '!!!'); $stmt->bindValue(3, 40, SQLITE3_INTEGER); $a = 50; echo "Execute statement\n"; var_dump($res = $stmt->execute()); echo "Statement result\n"; var_dump($res->fetchArray(SQLITE3_NUM));

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.0060.00919.02
8.3.50.0130.00317.01
8.3.40.0090.00619.64
8.3.30.0110.00419.46
8.3.20.0080.00019.35
8.3.10.0050.00324.45
8.3.00.0060.00321.11
8.2.180.0200.00019.04
8.2.170.0110.01122.96
8.2.160.0110.01121.10
8.2.150.0090.00024.18
8.2.140.0030.00624.66
8.2.130.0030.00526.16
8.2.120.0040.00421.80
8.2.110.0060.00321.62
8.2.100.0060.00618.47
8.2.90.0000.01020.16
8.2.80.0000.00818.80
8.2.70.0000.00918.68
8.2.60.0040.00418.78
8.2.50.0000.00818.38
8.2.40.0040.00420.03
8.2.30.0080.00019.94
8.2.20.0040.00418.76
8.2.10.0040.00418.89
8.2.00.0030.00618.36
8.1.280.0130.00625.92
8.1.270.0080.00019.63
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0040.00424.55
8.1.230.0120.00023.30
8.1.220.0030.00518.43
8.1.210.0000.00818.77
8.1.200.0080.00417.98
8.1.190.0090.00017.88
8.1.180.0040.00418.16
8.1.170.0000.00819.25
8.1.160.0000.00719.64
8.1.150.0030.00519.66
8.1.140.0040.00424.58
8.1.130.0050.00318.14
8.1.120.0000.00818.21
8.1.110.0030.00518.19
8.1.100.0000.00818.20
8.1.90.0040.00418.06
8.1.80.0030.00518.06
8.1.70.0090.00018.14
8.1.60.0030.00618.28
8.1.50.0050.00518.16
8.1.40.0090.00018.25
8.1.30.0060.00318.44
8.1.20.0050.00318.28
8.1.10.0060.00318.34
8.1.00.0080.00018.31
8.0.300.0040.00420.41
8.0.290.0070.00017.50
8.0.280.0040.00419.25
8.0.270.0040.00418.07
8.0.260.0000.00717.50
8.0.250.0090.00017.73
8.0.240.0070.00317.65
8.0.230.0120.00017.70
8.0.220.0000.00717.50
8.0.210.0050.00217.61
8.0.200.0070.00017.61
8.0.190.0090.00017.67
8.0.180.0040.00417.69
8.0.170.0030.00617.63
8.0.160.0040.00417.68
8.0.150.0000.00917.62
8.0.140.0000.00717.46
8.0.130.0040.00414.01
8.0.120.0040.00417.46
8.0.110.0000.00817.66
8.0.100.0030.00617.46
8.0.90.0000.00817.69
8.0.80.0040.01417.53
8.0.70.0000.00717.61
8.0.60.0000.00717.71
8.0.50.0000.00817.58
8.0.30.0090.01017.83
8.0.20.0000.02117.75
8.0.10.0050.00317.75
8.0.00.0110.00917.62
7.4.330.0050.00015.82
7.4.320.0030.00317.12
7.4.300.0030.00317.31
7.4.290.0040.00417.34
7.4.280.0060.00317.22
7.4.270.0030.00717.29
7.4.260.0040.00417.07
7.4.250.0000.00817.04
7.4.240.0030.00417.36
7.4.230.0040.00417.36
7.4.220.0050.00217.10
7.4.210.0090.00917.34
7.4.200.0030.00617.40
7.4.160.0100.01017.18
7.4.140.0150.00817.86
7.4.130.0070.01117.18
7.4.120.0090.01017.16
7.4.110.0110.00717.25
7.4.100.0110.00817.06
7.4.90.0110.00717.13
7.4.80.0140.01119.39
7.4.70.0150.00317.32
7.4.60.0120.00617.34
7.4.50.0060.00917.44
7.4.40.0070.01617.10
7.4.00.0060.00615.56
7.3.330.0040.00213.72
7.3.320.0040.00213.68
7.3.310.0070.00016.93
7.3.300.0030.00316.76
7.3.290.0070.00016.77
7.3.280.0030.01316.84
7.3.260.0120.01117.12
7.3.240.0100.01017.07
7.3.230.0140.01216.92
7.3.210.0090.00916.94
7.3.200.0100.00716.88
7.3.190.0060.01117.12
7.3.180.0080.01117.09
7.3.170.0150.00617.13
7.3.160.0100.01417.09
7.2.330.0120.00617.24
7.2.320.0060.01317.14
7.2.310.0070.01017.42
7.2.300.0130.00717.23
7.2.290.0120.00617.04
7.2.110.0160.00315.33
7.2.100.2690.00315.26
7.2.90.3310.01015.13
7.2.80.3290.00315.32
7.2.70.3020.00615.62
7.2.60.2820.00715.70
7.2.50.3000.00615.75
7.2.40.2960.00315.73
7.2.30.2920.01615.46
7.2.20.2680.00315.30
7.2.10.3040.00615.62
7.2.00.3390.00915.25
7.1.230.0280.00314.25
7.1.220.3370.01014.24
7.1.210.2960.00614.19
7.1.200.3370.01014.33
7.1.190.3610.00314.23
7.1.180.2640.00714.43
7.1.170.2880.00314.53
7.1.160.2820.00714.43
7.1.150.3100.00614.36
7.1.140.2820.00614.47
7.1.130.2720.00714.50
7.1.120.3270.00614.07
7.1.110.3200.01014.39
7.1.100.2990.01314.51
7.1.90.3070.00714.46
7.1.80.2860.00314.27
7.1.70.3200.01014.46
7.1.60.3090.00632.67
7.1.50.3210.01332.53
7.1.40.3890.00732.49
7.1.30.4520.01032.09
7.1.20.3620.00732.38
7.1.10.3300.00314.18
7.1.00.2720.01214.32
5.6.380.0150.00314.40

preferences:
58.2 ms | 400 KiB | 5 Q