3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ytlinks = $db_con->prepare('SELECT * FROM PJW_helpful_links WHERE parent=? AND type=? ORDER BY id'); $ytlinks->execute(array($post_id, "YT")); $ytlinks->fetch(PDO::FETCH_ASSOC); /* and then */ if ($ytlinks->rowCount() > 0) { while ($results = $ytlinks->fetch(PDO::FETCH_ASSOC)) { if ($results["description"] != "") { include 'inc/yt-d.phtml'; } else { include 'inc/yt.phtml'; } } }

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.0110.00718.28
8.3.50.0070.00717.80
8.3.40.0120.00918.78
8.3.30.0000.01418.65
8.3.20.0060.00321.85
8.3.10.0000.00721.82
8.3.00.0080.00023.37
8.2.180.0090.00618.42
8.2.170.0060.00822.96
8.2.160.0070.00719.97
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0030.00621.12
8.2.120.0040.00426.35
8.2.110.0060.00321.11
8.2.100.0080.00317.72
8.2.90.0000.00818.84
8.2.80.0030.00517.97
8.2.70.0070.00317.50
8.2.60.0040.00417.80
8.2.50.0040.00417.55
8.2.40.0050.00319.36
8.2.30.0040.00421.00
8.2.20.0000.00818.01
8.2.10.0040.00417.89
8.2.00.0050.00319.18
8.1.280.0130.00625.92
8.1.270.0030.00522.17
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0030.00523.92
8.1.230.0110.00019.15
8.1.220.0040.00417.79
8.1.210.0050.00318.77
8.1.200.0060.00317.22
8.1.190.0030.00617.11
8.1.180.0050.00318.10
8.1.170.0040.00417.62
8.1.160.0020.00518.74
8.1.150.0050.00218.93
8.1.140.0000.00717.62
8.1.130.0030.00318.96
8.1.120.0070.00317.20
8.1.110.0000.00717.39
8.1.100.0000.00717.34
8.1.90.0000.00717.26
8.1.80.0000.00717.22
8.1.70.0000.00717.23
8.1.60.0030.00617.43
8.1.50.0090.00017.45
8.1.40.0000.00717.36
8.1.30.0030.00517.48
8.1.20.0000.00717.57
8.1.10.0000.00817.42
8.1.00.0040.00417.51
8.0.300.0040.00420.04
8.0.290.0000.00716.75
8.0.280.0000.00718.32
8.0.270.0030.00317.11
8.0.260.0030.00317.19
8.0.250.0050.00216.96
8.0.240.0000.00717.00
8.0.230.0070.00016.94
8.0.220.0030.00316.77
8.0.210.0040.00416.93
8.0.200.0060.00316.91
8.0.190.0040.00416.97
8.0.180.0000.00716.87
8.0.170.0030.00516.79
8.0.160.0030.00316.80
8.0.150.0030.00316.81
8.0.140.0020.00516.84
8.0.130.0030.00313.42
8.0.120.0000.00716.86
8.0.110.0070.00016.94
8.0.100.0070.00016.92
8.0.90.0030.00316.71
8.0.80.0070.00716.84
8.0.70.0040.00416.78
8.0.60.0000.00816.84
8.0.50.0000.00816.84
8.0.30.0100.01017.09
8.0.20.0130.00617.40
8.0.10.0070.00016.95
8.0.00.0130.00616.61
7.4.330.0050.00016.83
7.4.320.0000.00616.37
7.4.300.0030.00316.57
7.4.290.0080.00016.34
7.4.280.0040.00416.38
7.4.270.0040.00416.43
7.4.260.0060.00316.53
7.4.250.0070.00016.50
7.4.240.0000.00816.45
7.4.230.0000.00616.60
7.4.220.0040.00416.44
7.4.210.0070.00916.48
7.4.200.0080.00016.25
7.4.160.0110.00816.61
7.4.140.0090.00917.86
7.4.130.0120.00916.53
7.4.120.0100.00916.54
7.4.110.0030.01316.31
7.4.100.0070.01016.26
7.4.90.0130.00316.55
7.4.80.0100.00719.39
7.4.70.0070.01016.36
7.4.60.0100.01016.48
7.4.50.0060.00916.48
7.4.40.0000.02116.22
7.4.10.0070.01015.03
7.4.00.0060.01214.93
7.3.330.0000.00713.16
7.3.320.0000.00613.15
7.3.310.0030.00316.11
7.3.300.0060.00016.29
7.3.290.0030.00316.30
7.3.280.0050.01116.28
7.3.260.0110.01116.30
7.3.240.0100.00816.32
7.3.230.0130.00916.33
7.3.210.0120.01216.52
7.3.200.0100.01316.66
7.3.190.0090.00916.24
7.3.180.0100.00616.20
7.3.170.0090.00616.23
7.3.160.0150.00616.49
7.3.130.0060.01314.88
7.3.120.0110.00714.49
7.3.110.0040.01114.86
7.3.100.0070.00715.10
7.3.90.0000.00914.80
7.3.80.0000.01214.74
7.3.70.0060.00614.53
7.3.60.0070.00714.82
7.3.50.0030.00714.70
7.3.40.0060.00614.68
7.3.30.0090.00014.75
7.3.20.0090.00016.69
7.3.10.0150.00016.58
7.3.00.0060.00616.44
7.2.330.0170.00016.59
7.2.320.0080.01116.43
7.2.310.0110.00716.54
7.2.300.0110.00516.17
7.2.290.0080.01616.63
7.2.260.0090.00915.05
7.2.250.0040.01115.04
7.2.240.0090.00615.06
7.2.230.0090.00614.99
7.2.220.0030.01214.94
7.2.210.0060.00614.77
7.2.200.0090.00614.92
7.2.190.0070.00714.91
7.2.180.0030.01014.67
7.2.170.0000.01114.98
7.2.160.0080.00714.85
7.2.150.0060.01216.86
7.2.140.0060.00916.70
7.2.130.0030.01016.75
7.2.120.0000.01516.82
7.2.110.0000.01316.57
7.2.100.0110.00716.78
7.2.90.0070.01016.62
7.2.80.0080.01216.82
7.2.70.0060.00616.77
7.2.60.0170.00716.73
7.2.50.0040.00916.91
7.2.40.0930.00717.18
7.2.30.0050.01317.41
7.2.20.1170.01317.23
7.2.10.0080.01017.32
7.2.00.0050.01217.39
7.1.330.0100.00315.78
7.1.320.0060.00315.46
7.1.310.0040.00715.57
7.1.300.0040.00415.61
7.1.290.0060.01015.51
7.1.280.0000.01115.68
7.1.270.0040.01115.75
7.1.260.0100.00715.78
7.1.250.0000.00915.74
7.1.240.0100.01015.61
7.1.230.0030.01315.76
7.1.220.0030.00715.61
7.1.210.0030.01615.79
7.1.200.0080.00615.58
7.1.190.0130.00015.59
7.1.180.0030.01015.42
7.1.170.0000.00815.65
7.1.160.0910.00716.08
7.1.150.0580.00816.16
7.1.140.0060.01116.10
7.1.130.0090.01016.18
7.1.120.0050.00916.02
7.1.110.0060.00915.95
7.1.100.0690.01115.67
7.1.90.0070.00515.93
7.1.80.0090.00815.93
7.1.70.0910.00715.43
7.1.60.0840.01024.38
7.1.50.0640.00724.33
7.1.40.0950.00524.03
7.1.30.0950.01124.02
7.1.20.0930.01324.12
7.1.10.0260.00815.04
7.1.00.0140.00915.19
7.0.330.0130.00315.11
7.0.320.0070.01015.23
7.0.310.0030.01015.27
7.0.300.0080.00415.25
7.0.290.0100.00315.31
7.0.280.0030.01015.32
7.0.270.0070.00715.50
7.0.260.0050.00515.24
7.0.250.0030.00615.26
7.0.240.0030.00715.42
7.0.230.0070.00715.21
7.0.220.0000.01415.31
7.0.210.0040.01115.44
7.0.200.0030.00515.27
7.0.190.0030.00915.26
7.0.180.0110.00315.38
7.0.170.0030.00915.13
7.0.160.0030.01015.31
7.0.150.0030.01015.32
7.0.140.0030.00715.38
7.0.130.0090.00615.36
7.0.120.0120.00315.41
7.0.110.0070.00315.34
7.0.100.0040.01115.29
7.0.90.0070.00715.27
7.0.80.0060.00615.32
7.0.70.0060.01115.05
7.0.60.0090.00015.37
7.0.50.0060.00615.49
7.0.40.0040.01113.27
7.0.30.0100.01013.38
7.0.20.0060.00613.13
7.0.10.0060.01213.12
7.0.00.0040.01113.27
5.6.400.0110.00314.06
5.6.390.0090.00614.05
5.6.380.0110.00413.80
5.6.370.0040.00414.50
5.6.360.0000.01114.19
5.6.350.0060.00314.11
5.6.340.0060.00914.30
5.6.330.0030.00914.12
5.6.320.0060.00914.40
5.6.310.0030.00614.38
5.6.300.0070.00714.28
5.6.290.0060.00914.35
5.6.280.0000.01414.32
5.6.270.0080.00014.10
5.6.260.0120.00014.21
5.6.250.0040.00913.99
5.6.240.0070.00714.29
5.6.230.0090.00614.37
5.6.220.0030.00914.08
5.6.210.0070.00414.34
5.6.200.0030.00814.06
5.6.190.0070.00314.13
5.6.180.0030.01314.20
5.6.170.0040.01513.81
5.6.160.0090.00914.09
5.6.150.0040.00814.26
5.6.140.0070.00714.02
5.6.130.0040.01114.30
5.6.120.0030.01014.36
5.6.110.0110.00714.42
5.6.100.0100.00614.28
5.6.90.0040.01413.82
5.6.80.0060.00613.95
5.6.70.0060.00914.13
5.6.60.0040.01413.92
5.6.50.0030.01413.86
5.6.40.0030.01514.04
5.6.30.0000.01513.95
5.6.20.0090.00914.02
5.6.10.0040.00714.19
5.6.00.0000.01613.89

preferences:
83.03 ms | 400 KiB | 5 Q