3v4l.org

run code in 300+ PHP versions simultaneously
<?php $conn = new PDO('sqlite::memory:'); $conn->exec('CREATE TABLE php81_test (test_int INTEGER NOT NULL, test_decimal NUMERIC(10, 2) DEFAULT NULL, PRIMARY KEY(test_int))'); $conn->exec('INSERT INTO php81_test (test_int, test_decimal) VALUES (1, 1.55)'); $stmt = $conn->query('SELECT * FROM php81_test'); var_dump($stmt->fetch(PDO::FETCH_ASSOC)); $stmt = $conn->query('PRAGMA table_info(php81_test)'); var_dump($stmt->fetch(PDO::FETCH_ASSOC));

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.0090.00919.13
8.3.50.0120.00318.91
8.3.40.0070.01419.59
8.3.30.0040.01519.32
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0030.00626.16
8.2.180.0130.00625.92
8.2.170.0190.00319.54
8.2.160.0040.01122.96
8.2.150.0050.00325.66
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00420.48
8.2.110.0000.00922.00
8.2.100.0030.00918.53
8.2.90.0030.00619.96
8.2.80.0100.00018.25
8.2.70.0050.00518.25
8.2.60.0030.00518.68
8.2.50.0030.00518.25
8.2.40.0040.00418.79
8.2.30.0060.00318.74
8.2.20.0000.00818.70
8.2.10.0080.00020.11
8.2.00.0000.00819.91
8.1.280.0180.00325.92
8.1.270.0000.00823.99
8.1.260.0060.00326.35
8.1.250.0050.00528.09
8.1.240.0030.00723.49
8.1.230.0090.00318.70
8.1.220.0000.00818.30
8.1.210.0060.00318.77
8.1.200.0000.01018.10
8.1.190.0060.00318.11
8.1.180.0040.00418.29
8.1.170.0110.00019.25
8.1.160.0040.00419.55
8.1.150.0040.00419.56
8.1.140.0060.00321.41
8.1.130.0000.00720.93
8.1.120.0020.00518.29
8.1.110.0030.00618.26
8.1.100.0090.00018.20
8.1.90.0060.00618.23
8.1.80.0030.00618.21
8.1.70.0030.00518.29
8.1.60.0000.01018.48
8.1.50.0060.00318.35
8.1.40.0040.00418.39
8.1.30.0060.00318.54
8.1.20.0050.00518.45
8.1.10.0000.00818.30
8.1.00.0000.00918.40
8.0.300.0030.00518.77
8.0.290.0040.00717.38
8.0.280.0040.00419.27
8.0.270.0040.00418.84
8.0.260.0030.00321.08
8.0.250.0050.00217.72
8.0.240.0070.00017.76
8.0.230.0000.00717.83
8.0.220.0000.00717.74
8.0.210.0040.00417.70
8.0.200.0040.00417.69
8.0.190.0050.00517.74
8.0.180.0030.00617.60
8.0.170.0060.00317.68
8.0.160.0060.00317.65
8.0.150.0040.00417.56
8.0.140.0040.00417.68
8.0.130.0000.00614.20
8.0.120.0040.00417.67
8.0.110.0040.00417.73
8.0.100.0030.00517.65
8.0.90.0040.00417.46
8.0.80.0080.01217.57
8.0.70.0070.01017.68
8.0.60.0000.01617.61
8.0.50.0030.01217.71
8.0.30.0130.00317.77
8.0.20.0080.00817.77
8.0.10.0060.01017.93
8.0.00.0070.00717.83
7.4.330.0000.00515.94
7.4.320.0030.00317.41
7.4.300.0060.00017.18
7.4.290.0040.00417.42
7.4.280.0080.00017.14
7.4.270.0000.00817.37
7.4.260.0040.00413.98
7.4.250.0040.00417.43
7.4.240.0040.00317.31
7.4.230.0030.00317.17
7.4.220.0040.00417.45
7.4.210.0100.00917.40
7.4.200.0110.00317.28
7.4.190.0060.00917.35
7.4.180.0070.01417.63
7.4.160.0030.01317.45
7.4.150.0130.00017.20
7.4.140.0130.01017.29
7.4.130.0070.01417.18
7.4.120.0090.00617.33
7.4.110.0090.00617.33
7.4.100.0060.00917.50
7.4.90.0100.00617.38
7.4.80.0070.00717.26
7.4.70.0060.00917.24
7.4.60.0120.00417.18
7.4.50.0100.00517.21
7.4.40.0040.01117.13
7.4.30.0090.00617.22
7.4.20.0070.00717.11
7.4.10.0070.00717.20
7.4.00.0110.00417.11
7.3.330.0000.00716.84
7.3.320.0000.00613.80
7.3.310.0000.00717.00
7.3.300.0040.00417.01
7.3.290.0000.00816.99
7.3.280.0060.00917.05
7.3.270.0060.00917.02
7.3.260.0090.00616.95
7.3.250.0080.00816.98
7.3.240.0030.01417.02
7.3.230.0030.01416.96
7.3.220.0080.00617.01
7.3.210.0100.01016.99
7.3.200.0000.01416.99
7.3.190.0170.00317.05
7.3.180.0030.01217.02
7.3.170.0120.00617.06
7.3.160.0070.01317.03
7.3.150.0050.00917.11
7.3.140.0090.00617.03
7.3.130.0070.01416.97
7.3.120.0040.01116.96
7.3.110.0070.00716.93
7.3.100.0110.00416.96
7.3.90.0060.00917.17
7.3.80.0090.00616.80
7.3.70.0080.00816.99
7.3.60.0040.01116.99
7.3.50.0070.00716.96
7.3.40.0090.00616.94
7.3.30.0040.01116.90
7.3.20.0120.00417.02
7.3.10.0120.00316.96
7.3.00.0100.00616.90

preferences:
57.2 ms | 400 KiB | 5 Q