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.3.70.0080.00817.38
8.3.60.0120.00317.25
8.3.50.0070.01118.77
8.3.40.0150.00019.83
8.3.30.0150.00019.27
8.3.20.0040.00424.18
8.3.10.0060.00324.66
8.3.00.0080.00026.16
8.2.180.0090.00925.92
8.2.170.0080.00819.71
8.2.160.0130.00322.96
8.2.150.0000.00825.66
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0060.00320.11
8.2.110.0070.00421.87
8.2.100.0040.00818.25
8.2.90.0040.00419.83
8.2.80.0040.00418.25
8.2.70.0030.00718.25
8.2.60.0090.00018.66
8.2.50.0060.00318.24
8.2.40.0060.00318.37
8.2.30.0060.00318.52
8.2.20.0040.00420.21
8.2.10.0040.00419.64
8.2.00.0040.00420.01
8.1.280.0110.00625.92
8.1.270.0040.00423.99
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0070.00319.85
8.1.230.0120.00020.10
8.1.220.0060.00318.52
8.1.210.0030.00518.77
8.1.200.0030.00718.13
8.1.190.0090.00017.84
8.1.180.0060.00318.10
8.1.170.0000.00819.25
8.1.160.0050.00321.38
8.1.150.0040.00419.36
8.1.140.0030.00618.16
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.300.0060.00318.77
8.0.290.0040.00417.50
8.0.280.0000.00719.40
8.0.270.0070.00017.66
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:
62.12 ms | 401 KiB | 5 Q