3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dbh = new PDO("sqlite::memory:", "", "", [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]); $dbh->exec("CREATE TABLE fruits (name TEXT, color TEXT)"); $dbh->exec("INSERT INTO fruits VALUES('banana', 'yellow')"); $sql = "SELECT * FROM fruits WHERE name = :name AND color = ?"; $sth = $dbh->prepare($sql); $sth->execute(["banana", "yellow"]); var_dump($sth->fetchAll());

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.1.130.0040.00418.21
8.1.120.0000.01018.23
8.1.110.0050.00318.24
8.1.100.0000.00818.14
8.1.90.0050.00218.17
8.1.80.0030.00618.23
8.1.70.0030.00318.16
8.1.60.0040.00418.43
8.1.50.0050.00318.25
8.1.40.0000.00818.30
8.1.30.0030.00618.29
8.1.20.0000.00818.38
8.1.10.0000.00818.39
8.1.00.0040.00418.24
8.0.260.0050.00217.47
8.0.250.0030.00317.59
8.0.240.0000.00717.77
8.0.230.0070.00017.78
8.0.220.0030.00317.72
8.0.210.0000.00817.64
8.0.200.0050.00217.70
8.0.190.0000.00917.77
8.0.180.0030.00617.62
8.0.170.0070.00317.66
8.0.160.0070.00417.66
8.0.150.0070.00017.63
8.0.140.0040.00417.54
8.0.130.0000.00614.05
8.0.120.0080.00017.62
8.0.110.0000.00817.58
8.0.100.0040.00417.63
8.0.90.0040.00417.59
8.0.80.0080.00017.56
8.0.70.0000.00717.55
8.0.60.0000.00717.71
8.0.50.0000.00717.57
8.0.30.0000.00717.65
8.0.20.0000.00817.57
8.0.10.0030.00517.66
8.0.00.0040.00417.78
7.4.330.0050.00015.55
7.4.320.0040.00417.16
7.4.300.0040.00417.40
7.4.290.0000.00717.15
7.4.280.0080.00017.35
7.4.270.0030.00517.27
7.4.260.0060.00014.05
7.4.250.0040.00417.21
7.4.240.0000.00717.15
7.4.230.0000.00717.27
7.4.220.0000.00717.29
7.4.210.0080.00017.24
7.4.200.0000.00717.22
7.4.190.0040.00417.39
7.4.180.0000.00717.25
7.4.160.0040.00417.44
7.4.150.0000.00717.26
7.4.140.0070.00017.38
7.4.130.0030.00317.12
7.4.120.0070.00017.36
7.4.110.0050.00317.02
7.4.100.0000.00817.32
7.4.90.0000.00717.10
7.4.80.0080.00017.26
7.4.70.0050.00317.16
7.4.60.0030.00517.27
7.4.50.0020.00516.96
7.4.40.0040.00417.09
7.4.30.0000.00717.10
7.4.20.0000.00717.06
7.4.10.0030.00317.10
7.4.00.0040.00417.19
7.3.330.0000.00816.88
7.3.320.0030.00313.75
7.3.310.0000.00716.97
7.3.300.0030.00317.02
7.3.290.0040.00416.91
7.3.280.0080.00016.98
7.3.270.0030.00516.92
7.3.260.0080.00017.05
7.3.250.0000.00716.90
7.3.240.0000.00717.03
7.3.230.0030.00517.07
7.3.220.0040.00416.81
7.3.210.0070.00016.84
7.3.200.0040.00417.13
7.3.190.0000.00717.13
7.3.180.0040.00417.04
7.3.170.0030.00316.90
7.3.160.0030.00317.11
7.3.150.0040.00416.95
7.3.140.0040.00416.96
7.3.130.0000.00817.05
7.3.120.0000.00717.04
7.3.110.0050.00216.73
7.3.100.0040.00416.84
7.3.90.0080.00017.27
7.3.80.0000.00816.66
7.3.70.0030.00316.75
7.3.60.0050.00216.94
7.3.50.0050.00217.07
7.3.40.0030.00316.78
7.3.30.0070.00017.11
7.3.20.0070.00018.80
7.3.10.0040.00418.55
7.3.00.0030.00618.72

preferences:
55.99 ms | 406 KiB | 5 Q