3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pdo = new PDO('mysql:dbname=testdb;host=127.0.0.1;charset=utf8mb4', 'local'); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES,false); var_dump($s->execute([1]), $s->fetchall()); /* PHP Warning: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''1'' at line 1 in php shell code:1 Stack trace: #0 php shell code(1): PDOStatement->execute(Array) #1 {main} thrown in php shell code on line 1 */

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.0000.01618.40
8.3.60.0110.00718.30
8.3.50.0200.00318.14
8.3.40.0030.01718.98
8.3.30.0170.00318.79
8.3.20.0040.00418.77
8.3.10.0040.00423.69
8.3.00.0040.00421.85
8.2.190.0070.01116.59
8.2.180.0100.00716.59
8.2.170.0110.00422.96
8.2.160.0000.01419.29
8.2.150.0090.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0050.00519.83
8.2.110.0080.01520.89
8.2.100.0060.00617.84
8.2.90.0050.00319.00
8.2.80.0020.00517.97
8.2.70.0050.00317.65
8.2.60.0040.00418.22
8.2.50.0000.00818.10
8.2.40.0040.00419.23
8.2.30.0030.00320.51
8.2.20.0060.00318.01
8.2.10.0040.00417.89
8.2.00.0000.00819.43
8.1.280.0090.00925.92
8.1.270.0060.00324.01
8.1.260.0000.00926.35
8.1.250.0040.00428.09
8.1.240.0060.00322.74
8.1.230.0110.00017.83
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0040.00418.24
8.1.160.0070.00018.76
8.1.150.0040.00418.81
8.1.140.0070.00020.73
8.1.130.0080.00017.33
8.1.120.0000.00817.38
8.1.110.0000.00817.29
8.1.100.0070.00317.36
8.1.90.0000.00717.30
8.1.80.0000.00817.34
8.1.70.0050.00317.32
8.1.60.0040.00417.44
8.1.50.0040.00417.45
8.1.40.0040.00717.35
8.1.30.0030.00517.66
8.1.20.0030.00617.59
8.1.10.0040.00417.52
8.1.00.0040.00417.47
8.0.300.0090.00018.77
8.0.290.0000.00716.63
8.0.280.0000.00718.30
8.0.270.0070.00017.27
8.0.260.0000.00816.87
8.0.250.0060.00316.96
8.0.240.0030.00316.85
8.0.230.0000.00816.89
8.0.220.0060.00016.95
8.0.210.0070.00016.91
8.0.200.0000.00616.84
8.0.190.0000.00716.80
8.0.180.0000.00816.89
8.0.170.0030.00616.81
8.0.160.0050.00216.92
8.0.150.0030.00316.84
8.0.140.0030.00316.74
8.0.130.0030.00313.32
8.0.120.0060.00316.79
8.0.110.0040.00416.93
8.0.100.0000.00716.79
8.0.90.0040.00416.99
8.0.80.0110.00616.91
8.0.70.0070.00016.76
8.0.60.0000.00816.73
8.0.50.0000.00716.88
8.0.30.0130.00816.95
8.0.20.0110.00917.40
8.0.10.0070.00016.93
8.0.00.0080.01016.73
7.4.330.0000.00515.55
7.4.320.0000.00716.38
7.4.300.0000.00616.59
7.4.290.0000.00716.34
7.4.280.0060.00316.48
7.4.270.0000.00816.52
7.4.260.0040.00416.57
7.4.250.0070.00016.48
7.4.240.0040.00416.36
7.4.230.0030.00316.29
7.4.220.0030.00516.57
7.4.210.0150.00316.62
7.4.200.0070.00016.45
7.4.160.0080.00716.38
7.4.140.0130.01117.86
7.4.130.0100.00716.41
7.4.120.0130.00616.48
7.4.110.0090.01016.47
7.4.100.0090.01216.44
7.4.90.0110.00716.66
7.4.80.0060.01019.39
7.4.70.0080.00816.35
7.4.60.0100.00716.48
7.4.50.0100.00716.57
7.4.40.0070.01116.57
7.4.00.0060.01014.88
7.3.330.0000.00513.25
7.3.320.0000.00513.05
7.3.310.0030.00316.13
7.3.300.0030.00316.23
7.3.290.0030.00516.10
7.3.280.0040.01016.22
7.3.260.0110.00916.42
7.3.240.0100.01016.32
7.3.230.0070.01016.32
7.3.210.0070.01016.21
7.3.200.0060.00916.60
7.3.190.0180.00316.59
7.3.180.0030.01516.46
7.3.170.0040.01116.25
7.3.160.0120.00916.30
7.3.120.0100.00914.96
7.3.110.0080.01114.98
7.3.100.0050.01114.78
7.3.90.0050.00914.86
7.3.80.0060.00614.67
7.3.70.0080.00514.86
7.3.60.0050.01014.88
7.3.50.0070.00414.72
7.3.40.0090.00314.64
7.3.30.0090.00614.69
7.3.20.0040.01116.57
7.3.10.0060.00616.52
7.3.00.0070.00716.49
7.2.330.0140.00316.17
7.2.320.0070.01116.54
7.2.310.0190.00316.49
7.2.300.0090.00916.28
7.2.290.0130.00316.55
7.2.250.0100.01014.74
7.2.240.0050.01514.84
7.2.230.0040.01114.64
7.2.220.0020.00814.90
7.2.210.0070.00714.79
7.2.200.0030.00814.92
7.2.190.0060.01014.89
7.2.180.0050.00715.00
7.2.170.0080.00314.90
7.2.130.0030.00716.81
7.2.120.0100.00316.70
7.2.110.0110.01016.66
7.2.100.0070.00716.61
7.2.90.1740.00515.72
7.2.80.1230.01415.62
7.2.70.2070.00815.72
7.2.60.1020.00315.72
7.2.50.1470.00715.77
7.2.40.1480.00715.76
7.2.30.2030.01315.63
7.2.20.1650.00515.70
7.2.10.1680.01215.77
7.2.00.1650.01315.66
7.1.330.0050.00915.35
7.1.320.0010.00815.71
7.1.310.0050.01015.65
7.1.300.0050.00815.46
7.1.290.0090.00515.58
7.1.280.0030.01015.62
7.1.270.0090.00515.63
7.1.260.0050.00515.39
7.1.250.0050.00815.57
7.1.210.4030.01013.49
7.1.200.2980.00313.71
7.1.190.3550.01013.39
7.1.180.4250.00313.52
7.1.170.3870.00313.40
7.1.160.3210.00713.84
7.1.150.3070.00713.64
7.1.140.2920.01313.86
7.1.130.4190.01013.48
7.1.120.3350.01013.55
7.1.110.2760.00713.94
7.1.100.2920.01013.88
7.1.90.4560.00713.46
7.1.80.4540.01013.33
7.1.70.3770.00313.37
7.1.60.3800.00031.36
7.1.50.6980.02031.37
7.1.40.5580.01331.39
7.1.30.7090.01631.50
7.1.20.6920.01031.65
7.1.10.6690.01013.79
7.1.00.3860.00713.76

preferences:
17.6 ms | 401 KiB | 5 Q