3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dbconn = pg_connect("host=localhost dbname=publishing user=www password=foo") or die('No se ha podido conectar: ' . pg_last_error());

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.0090.00618.18
8.3.60.0110.00316.63
8.3.50.0110.00721.07
8.3.40.0110.00718.97
8.3.30.0040.01118.68
8.3.20.0040.00420.34
8.3.10.0030.00523.70
8.3.00.0070.00021.73
8.2.190.0150.00018.29
8.2.180.0100.01016.50
8.2.170.0090.00622.96
8.2.160.0070.00720.35
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00321.11
8.2.120.0070.00026.35
8.2.110.0070.00421.05
8.2.100.0040.00717.72
8.2.90.0050.00317.97
8.2.80.0070.00018.03
8.2.70.0000.00917.61
8.2.60.0050.00317.93
8.2.50.0000.01118.09
8.2.40.0040.00422.26
8.2.30.0020.00519.23
8.2.20.0030.00517.55
8.2.10.0040.00417.98
8.2.00.0050.00217.92
8.1.280.0210.00025.92
8.1.270.0030.00622.14
8.1.260.0050.00228.09
8.1.250.0040.00428.09
8.1.240.0060.00322.58
8.1.230.0110.00020.97
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0070.00417.10
8.1.190.0040.00417.09
8.1.180.0050.00318.10
8.1.170.0040.00418.45
8.1.160.0050.00320.50
8.1.150.0000.00818.90
8.1.140.0000.00819.45
8.1.130.0000.00817.54
8.1.120.0030.00317.31
8.1.110.0070.00017.25
8.1.100.0000.00817.30
8.1.90.0030.00617.23
8.1.80.0000.00717.36
8.1.70.0000.00717.24
8.1.60.0000.00817.52
8.1.50.0050.00517.48
8.1.40.0000.00817.45
8.1.30.0040.00417.54
8.1.20.0040.00417.56
8.1.10.0000.00817.48
8.1.00.0000.00817.32
8.0.300.0040.00419.87
8.0.290.0040.00416.63
8.0.280.0000.00718.38
8.0.270.0030.00317.19
8.0.260.0050.00317.24
8.0.250.0030.00316.83
8.0.240.0000.00816.97
8.0.230.0030.00316.96
8.0.220.0030.00316.90
8.0.210.0000.00716.79
8.0.200.0060.00016.86
8.0.190.0040.00416.91
8.0.180.0050.00216.95
8.0.170.0050.00216.89
8.0.160.0050.00316.80
8.0.150.0000.00716.73
8.0.140.0050.00516.84
8.0.130.0060.00013.29
8.0.120.0040.00416.89
8.0.110.0000.00816.71
8.0.100.0040.00416.95
8.0.90.0000.00716.89
8.0.80.0090.00916.92
8.0.70.0000.00816.82
8.0.60.0000.00716.77
8.0.50.0000.00716.88
8.0.30.0120.00517.00
8.0.20.0100.01217.40
8.0.10.0030.00316.89
8.0.00.0070.01016.60
7.4.330.0020.00216.72
7.4.320.0000.00616.30
7.4.300.0040.00416.54
7.4.290.0000.00716.52
7.4.280.0040.00416.48
7.4.270.0000.00816.35
7.4.260.0050.00516.56
7.4.250.0000.00716.40
7.4.240.0000.00716.51
7.4.230.0000.00716.47
7.4.220.0070.01716.35
7.4.210.0030.01016.48
7.4.200.0030.00316.36
7.4.160.0060.00916.64
7.4.150.0090.00917.40
7.4.140.0120.01017.86
7.4.130.0130.00516.56
7.4.120.0080.00916.49
7.4.110.0150.00416.61
7.4.100.0090.00916.39
7.4.90.0070.01116.32
7.4.80.0070.01019.39
7.4.70.0060.01516.59
7.4.60.0110.01116.63
7.4.50.0030.01016.40
7.4.40.0180.00316.19
7.4.30.0100.01416.68
7.4.00.0070.00715.11
7.3.330.0050.00013.04
7.3.320.0000.00612.99
7.3.310.0030.00416.12
7.3.300.0030.00316.09
7.3.290.0090.00816.22
7.3.280.0040.01216.25
7.3.270.0070.01017.40
7.3.260.0120.00616.27
7.3.250.0090.01016.29
7.3.240.0140.00516.31
7.3.230.0030.01316.42
7.3.210.0070.01416.54
7.3.200.0170.00319.39
7.3.190.0160.00016.38
7.3.180.0140.00316.37
7.3.170.0100.01016.40
7.3.160.0060.01016.20
7.2.330.0140.00916.27
7.2.320.0110.00716.30
7.2.310.0100.01416.55
7.2.300.0060.01016.46
7.2.290.0120.00416.49
7.2.110.0130.00716.49
7.2.100.0180.00916.10
7.2.90.0330.00316.50
7.2.80.0270.00616.31
7.2.70.0280.00616.80
7.2.60.0110.00816.69
7.2.50.0250.01116.79
7.2.40.0210.01816.82
7.2.30.0210.01116.63
7.2.20.0300.00416.61
7.2.10.0250.00916.74
7.2.00.0080.00717.96
7.1.230.0030.00915.65
7.1.220.0100.00315.65
7.1.210.0280.00715.43
7.1.200.0130.01015.61
7.1.190.0300.00715.65
7.1.180.0230.01015.71
7.1.170.0200.01015.38
7.1.160.0250.00715.55
7.1.150.0220.00815.56
7.1.140.0270.00715.61
7.1.130.0130.00915.34
7.1.120.0100.00715.36
7.1.110.0120.00615.59
7.1.100.0090.00716.47
7.1.90.0200.00615.48
7.1.80.0130.01015.18
7.1.70.0110.00516.15
7.1.60.0130.01317.35
7.1.50.0140.01016.16
7.1.40.0100.01315.55
7.1.30.0280.00915.80
7.1.20.0400.00415.72
7.1.10.0240.00715.41
7.1.00.0120.04319.05
7.0.310.0260.00715.30
7.0.300.0170.01014.77
7.0.290.0170.01115.45
7.0.280.0270.00815.38
7.0.270.0070.01015.31
7.0.260.0000.01615.16
7.0.250.0080.00415.16
7.0.240.0180.00014.83
7.0.230.0150.00914.98
7.0.220.0170.01015.13
7.0.210.0180.00915.21
7.0.200.0270.00514.72
7.0.190.0200.00714.89
7.0.180.0240.00415.19
7.0.170.0270.00615.38
7.0.160.0170.01715.36
7.0.150.0220.01115.29
7.0.140.0250.00415.52
7.0.130.0240.00315.34
7.0.120.0100.01715.02
7.0.110.0240.00915.27
7.0.100.0200.01215.14
7.0.90.0240.00415.27
7.0.80.0200.01314.98
7.0.70.0250.00815.38
7.0.60.0230.04318.48
7.0.50.0130.03316.49
7.0.40.0120.04416.72
7.0.30.0170.04816.73
7.0.20.0250.04216.70
7.0.10.0080.04016.77
7.0.00.0070.04916.60
5.6.380.0110.00414.27
5.6.370.0180.00614.25
5.6.360.0100.01314.02
5.6.350.0100.01014.25
5.6.340.0170.00714.39
5.6.330.0100.00614.23
5.6.320.0070.00714.00
5.6.310.0140.00714.10
5.6.300.0150.01114.26
5.6.290.0190.00514.00
5.6.280.0110.02717.52
5.6.270.0120.01614.09
5.6.260.0190.00613.99
5.6.250.0170.01013.98
5.6.240.0070.01413.95
5.6.230.0100.01614.07
5.6.220.0180.00714.04
5.6.210.0130.04217.38
5.6.200.0130.02616.10
5.6.190.0120.02517.48
5.6.180.0190.02817.16
5.6.170.0250.04017.19
5.6.160.0010.02817.24
5.6.150.0100.04216.01
5.6.140.0130.03516.06
5.6.130.0080.02216.05
5.6.120.0040.02917.56
5.6.110.0070.02717.50
5.6.100.0060.03217.43
5.6.90.0050.04817.36
5.6.80.0150.02717.13
5.6.70.0000.00814.07
5.6.60.0000.00814.18
5.6.50.0070.00413.60
5.6.40.0040.00713.70
5.6.30.0070.01014.01
5.6.20.0090.00313.80
5.6.10.0110.00013.98
5.6.00.0040.00714.04
5.5.380.0110.00710.80
5.5.370.0120.00310.81
5.5.360.0170.00310.68
5.5.350.0060.04815.71
5.5.340.0120.02214.35
5.5.330.0080.02415.66
5.5.320.0310.04415.51
5.5.310.0180.03115.61
5.5.300.0060.03314.17
5.5.290.0050.03014.33
5.5.280.0060.04515.78
5.5.270.0080.04515.68
5.5.260.0070.04215.69
5.5.250.0070.02015.57
5.5.240.0100.01815.44
5.5.230.0040.00410.51
5.5.220.0080.00010.79
5.5.210.0030.00310.43
5.5.200.0000.01210.55
5.5.190.0040.00810.78
5.5.180.0000.01110.66
5.5.170.0070.00313.96
5.5.160.0000.00610.37
5.5.150.0050.00210.65
5.5.140.0030.00610.83
5.5.130.0030.00610.79
5.5.120.0040.00810.78
5.5.110.0000.01010.37
5.5.100.0030.00610.48
5.5.90.0040.00410.58
5.5.80.0030.00310.38
5.5.70.0090.00310.32
5.5.60.0040.00410.30
5.5.50.0000.00710.54
5.5.40.0040.00410.41
5.5.30.0060.00310.31
5.5.20.0030.00310.60
5.5.10.0050.00510.44
5.5.00.0000.01010.45

preferences:
50.87 ms | 401 KiB | 5 Q