3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pdo = new PDO('sqlite::memory:'); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $pdo->exec("CREATE TABLE foo( field1 CHAR(10), field2 CHAR(10) )"); $pdo->exec("INSERT INTO foo VALUES ('row1field1', 'row1field2')"); $pdo->exec("INSERT INTO foo VALUES ('row2field1', 'row2field2')"); //$statement = $pdo->query("SELECT * FROM foo WHERE `field1` in(?)"); $statement = $pdo->query("select * from `claim` where `external_id` in (?, ?) order by `created_at` desc limit 9223372036854775807 offset 0"); $statement->execute(['row2field1']); var_dump($statement->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.0040.01119.06
8.3.60.0120.00917.38
8.3.50.0120.00822.48
8.3.40.0030.01319.51
8.3.30.0120.00419.59
8.3.20.0040.00421.07
8.3.10.0060.00321.11
8.3.00.0030.00622.70
8.2.190.0130.00917.63
8.2.180.0070.01417.50
8.2.170.0090.00622.96
8.2.160.0060.00922.97
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0080.00021.70
8.2.120.0040.00426.35
8.2.110.0090.00323.02
8.2.100.0060.00618.55
8.2.90.0040.00419.80
8.2.80.0000.01118.38
8.2.70.0040.00418.23
8.2.60.0040.00418.55
8.2.50.0030.00618.38
8.2.40.0040.00421.19
8.2.30.0040.00420.20
8.2.20.0060.00318.31
8.2.10.0050.00318.77
8.2.00.0040.00418.77
8.1.280.0120.00325.92
8.1.270.0060.00323.07
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00324.68
8.1.230.0040.00818.83
8.1.220.0050.00318.30
8.1.210.0060.00318.77
8.1.200.0070.00418.35
8.1.190.0030.00519.76
8.1.180.0030.00618.23
8.1.170.0040.00419.41
8.1.160.0050.00321.36
8.1.150.0050.00219.64
8.1.140.0080.00020.30
8.1.130.0000.00718.19
8.1.120.0040.00418.20
8.1.110.0020.00518.18
8.1.100.0060.00318.21
8.1.90.0020.00518.24
8.1.80.0030.00618.16
8.1.70.0040.00418.20
8.1.60.0050.00318.39
8.1.50.0060.00318.39
8.1.40.0040.00418.33
8.1.30.0040.00418.55
8.1.20.0000.00818.43
8.1.10.0050.00318.39
8.1.00.0040.00418.19
8.0.300.0000.00918.77
8.0.290.0030.00617.63
8.0.280.0000.00819.25
8.0.270.0040.00418.05
8.0.260.0020.00517.72
8.0.250.0030.00317.87
8.0.240.0050.00317.88
8.0.230.0040.00417.84
8.0.220.0040.00417.75
8.0.210.0040.00417.85
8.0.200.0000.00717.84
8.0.190.0030.00617.73
8.0.180.0040.00417.74
8.0.170.0000.00817.76
8.0.160.0000.00717.72
8.0.150.0030.00517.70
8.0.140.0040.00417.65
8.0.130.0060.00014.14
8.0.120.0000.00817.74
8.0.110.0060.00317.66
8.0.100.0000.00817.55
8.0.90.0080.00017.79
8.0.80.0000.01717.75
8.0.70.0040.00417.53
8.0.60.0000.00717.56
8.0.50.0040.00417.71
8.0.30.0080.01018.07
8.0.20.0100.01017.88
8.0.10.0020.00517.66
8.0.00.0070.01017.67
7.4.330.0060.00017.61
7.4.320.0060.00017.23
7.4.300.0060.00017.36
7.4.290.0040.00417.30
7.4.280.0060.00317.42
7.4.270.0000.00717.34
7.4.260.0030.00317.25
7.4.250.0000.00717.41
7.4.240.0000.00717.35
7.4.230.0040.00417.40
7.4.220.0120.01517.31
7.4.210.0110.01117.57
7.4.200.0040.00417.52
7.4.160.0100.00717.50
7.4.150.0110.00817.43
7.4.140.0120.00817.86
7.4.130.0130.01017.43
7.4.120.0000.01817.28
7.4.110.0060.01117.43
7.4.100.0140.00717.46
7.4.90.0100.00717.36
7.4.80.0090.00919.39
7.4.70.0070.01117.20
7.4.60.0100.00917.27
7.4.50.0100.01017.44
7.4.40.0030.01317.43
7.4.30.0100.00717.29
7.4.00.0060.01215.80
7.3.330.0000.00513.93
7.3.320.0050.00014.01
7.3.310.0040.00417.10
7.3.300.0040.00417.03
7.3.290.0050.01017.14
7.3.280.0100.00817.08
7.3.270.0120.00617.40
7.3.260.0070.01117.27
7.3.250.0120.00617.13
7.3.240.0120.00717.31
7.3.230.0090.00917.27
7.3.210.0100.00617.08
7.3.200.0140.00317.13
7.3.190.0100.00717.09
7.3.180.0070.01017.21
7.3.170.0070.01017.20
7.3.160.0090.00917.10
7.3.120.0000.01315.81
7.3.110.0120.00615.53
7.3.100.0040.01115.72
7.3.90.0100.00615.54
7.3.80.0060.00315.49
7.3.70.0000.01415.67
7.3.60.0070.00715.59
7.3.50.0070.00715.65
7.3.40.0040.00715.40
7.3.30.0100.00315.79
7.3.20.0060.00617.32
7.3.10.0070.00717.44
7.3.00.0040.01117.32
7.2.330.0090.01217.25
7.2.320.0270.01517.29
7.2.310.0000.01817.46
7.2.300.0150.00417.28
7.2.290.0070.01017.45
7.2.250.0090.01115.49
7.2.240.0110.00715.92
7.2.230.0030.00915.56
7.2.220.0030.00715.76
7.2.210.0030.00615.27
7.2.200.0030.00715.66
7.2.190.0130.00315.41
7.2.180.0060.00315.59
7.2.170.0060.00615.92
7.2.160.0040.01515.62
7.2.150.0070.00717.65
7.2.140.0150.00017.37
7.2.130.0030.00717.61
7.2.120.0000.01417.30
7.2.110.0080.00417.65
7.2.100.0070.01117.58
7.2.90.0070.00317.41
7.2.80.0040.00817.38
7.2.70.0000.01817.72
7.2.60.0090.00617.55
7.2.50.0070.01317.29
7.2.40.0070.01017.66
7.2.30.0070.01017.65
7.2.20.0110.00817.43
7.2.10.0030.01217.45
7.2.00.0030.01018.81
7.1.330.0070.00816.60
7.1.320.0040.00816.43
7.1.310.0000.01516.68
7.1.300.0070.01016.41
7.1.290.0070.00316.12
7.1.280.0030.01216.36
7.1.270.0030.01216.10
7.1.260.0040.00716.29
7.1.250.0000.01316.38
7.1.200.0040.01116.11
7.1.100.0090.00618.83
7.1.70.0040.00817.79
7.1.60.0070.01819.40
7.1.50.0120.00917.77
7.1.00.0100.06722.41
7.0.200.0370.00715.20
7.0.60.0270.07021.68
7.0.50.0070.08317.99
7.0.40.0170.03320.35
7.0.30.0330.08320.17
7.0.20.0330.07720.05
7.0.10.0030.09320.13
7.0.00.0100.07720.36
5.6.280.0070.06721.04
5.6.210.0170.06320.81
5.6.200.0070.07718.34
5.6.190.0070.04320.63
5.6.180.0270.04020.85
5.6.170.0330.04720.48
5.6.160.0170.08020.54
5.6.150.0030.05018.24
5.6.140.0100.08318.23
5.6.130.0070.03718.23
5.6.120.0070.09021.20
5.6.110.0030.06721.07
5.6.100.0130.03021.22
5.6.90.0130.05321.07
5.6.80.0100.07020.44
5.5.350.0200.07720.44
5.5.340.0030.05318.04
5.5.330.0070.08720.64
5.5.320.0600.07720.36
5.5.310.0370.07020.35
5.5.300.0070.05018.14
5.5.290.0100.07718.05
5.5.280.0170.08021.02
5.5.270.0030.04320.81
5.5.260.0070.09020.81
5.5.250.0100.07320.52
5.5.240.0330.06320.34

preferences:
62.54 ms | 401 KiB | 5 Q