3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dsn = 'mysql:dbname=test;host=127.0.0.1'; $user = 'googleguy'; $password = 'googleguy'; /* Using try/catch around the constructor is still valid even though we set the ERRMODE to WARNING since PDO::__construct will always throw a PDOException if the connection fails. */ try { $dbh = new PDO($dsn, $user, $password, array(PDO::ATTR_ERRMODE => PDO::ERRMODE_WARNING)); } catch (PDOException $e) { }

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.0210.00018.03
8.3.50.0070.00716.37
8.3.40.0090.00618.70
8.3.30.0140.00018.85
8.3.20.0080.00018.74
8.3.10.0040.00423.66
8.3.00.0070.00020.55
8.2.180.0040.01118.17
8.2.170.0110.00422.96
8.2.160.0110.00420.39
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0140.00419.64
8.2.120.0080.00026.35
8.2.110.0060.00322.25
8.2.100.0040.00717.91
8.2.90.0000.00917.63
8.2.80.0030.00617.97
8.2.70.0030.00517.93
8.2.60.0050.00218.03
8.2.50.0080.00018.10
8.2.40.0030.00519.29
8.2.30.0040.00419.10
8.2.20.0050.00217.89
8.2.10.0030.00617.92
8.2.00.0000.00817.66
8.1.280.0140.00725.92
8.1.270.0040.00418.70
8.1.260.0070.00026.35
8.1.250.0000.00928.09
8.1.240.0000.00820.74
8.1.230.0120.00017.76
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0060.00317.22
8.1.190.0080.00417.23
8.1.180.0030.00618.10
8.1.170.0060.00318.53
8.1.160.0000.00718.75
8.1.150.0040.00418.73
8.1.140.0030.00323.84
8.1.130.0050.00220.07
8.1.120.0030.00517.39
8.1.110.0000.00717.38
8.1.100.0000.00717.38
8.1.90.0040.00417.30
8.1.80.0000.00717.28
8.1.70.0000.00717.44
8.1.60.0000.00817.39
8.1.50.0040.00417.40
8.1.40.0040.00417.40
8.1.30.0000.00817.60
8.1.20.0040.00417.54
8.1.10.0000.00817.57
8.1.00.0000.00717.49
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.28
8.0.270.0040.00416.80
8.0.260.0000.00820.14
8.0.250.0000.00616.97
8.0.240.0040.00416.93
8.0.230.0030.00716.83
8.0.220.0000.00716.80
8.0.210.0000.00716.89
8.0.200.0030.00316.93
8.0.190.0060.00316.88
8.0.180.0040.00416.98
8.0.170.0060.00316.83
8.0.160.0060.00316.77
8.0.150.0020.00516.81
8.0.140.0000.00716.83
8.0.130.0030.00313.32
8.0.120.0000.00716.87
8.0.110.0070.00016.88
8.0.100.0040.00416.85
8.0.90.0000.00716.93
8.0.80.0000.01416.89
8.0.70.0020.00516.73
8.0.60.0040.00316.89
8.0.50.0000.00716.95
8.0.30.0100.00716.98
8.0.20.0170.01117.40
8.0.10.0070.00017.01
8.0.00.0070.01416.58
7.4.330.0030.00315.55
7.4.320.0060.00016.54
7.4.300.0060.00016.48
7.4.290.0030.00316.54
7.4.280.0070.00016.35
7.4.270.0090.00016.58
7.4.260.0030.00616.49
7.4.250.0040.00416.59
7.4.240.0060.00016.62
7.4.230.0000.00716.46
7.4.220.0040.00416.70
7.4.210.0050.01016.60
7.4.200.0080.00016.42
7.4.160.0120.00816.40
7.4.140.0110.00817.86
7.4.130.0070.01016.37
7.4.120.0140.00516.45
7.4.110.0070.01116.58
7.4.100.0030.01316.51
7.4.90.0030.01516.36
7.4.80.0150.00919.39
7.4.70.0110.00616.47
7.4.60.0130.00316.55
7.4.50.0030.00916.61
7.4.40.0060.01016.59
7.4.00.0030.01315.04
7.3.330.0050.00013.05
7.3.320.0000.00513.14
7.3.310.0070.00016.26
7.3.300.0030.00316.23
7.3.290.0000.00616.20
7.3.280.0110.00616.33
7.3.260.0090.01316.42
7.3.240.0100.00716.30
7.3.230.0130.00616.26
7.3.210.0100.00716.46
7.3.200.0100.00716.50
7.3.190.0100.00616.21
7.3.180.0160.00316.36
7.3.170.0150.00316.70
7.3.160.0110.00616.38
7.2.330.0160.01916.48
7.2.320.0090.01216.59
7.2.310.0100.00616.39
7.2.300.0070.01016.21
7.2.290.0070.01016.63
7.2.110.1040.00314.39
7.2.100.1050.00314.58
7.2.90.0940.00314.49
7.2.80.1050.00614.47
7.2.70.1810.00614.82
7.2.60.0840.00614.84
7.2.50.0800.00314.63
7.2.40.0870.00315.10
7.2.30.0910.00315.05
7.2.20.0260.00815.04
7.2.10.0730.01014.73
7.2.00.0930.00314.84
7.1.230.0840.00313.78
7.1.220.0810.00313.58
7.1.210.0760.01013.78
7.1.200.0950.01313.68
7.1.190.1050.00613.64
7.1.180.0800.00913.64
7.1.170.0770.00313.78
7.1.160.0970.00713.91
7.1.150.0960.00314.03
7.1.140.0070.01313.75
7.1.130.0990.00613.64
7.1.120.0680.01113.69
7.1.110.0480.01013.86
7.1.100.0960.00613.97
7.1.90.0760.00313.81
7.1.80.1690.01213.59
7.1.70.0840.01013.62
7.1.60.0710.01831.92
7.1.50.0850.01431.75
7.1.40.0690.01231.82
7.1.30.1230.01031.55
7.1.20.1020.01031.68
7.1.10.0070.00713.72
7.1.00.0800.00713.55
5.6.380.0060.00813.87

preferences:
58.88 ms | 401 KiB | 5 Q