3v4l.org

run code in 300+ PHP versions simultaneously
<?php function comment_retrieve($amount = 0, $username = null, $file = null) { if ($file) { if ($username) { $querystring_file = ' AND fc_forfile=\'' . $file . '\''; } else { $querystring_file = ' WHERE fc_forfile=\'' . $file . '\''; } } else { $querystring_file = ''; } if ($username) { $querystring_username = ' WHERE fc_byuser=\'' . $username . '\''; } else { $querystring_username = ''; } if ($amount > 0) { $querystring_amount = ' LIMIT ' . $amount; } else { $querystring_amount = ''; } // query $querystring = "SELECT * FROM file_comments" . $querystring_username . $querystring_file . ' ORDER BY fc_time DESC' . $querystring_amount; return $querystring; } echo comment_retrieve('sff','sdff','tgrdsiu');

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.0100.00716.50
8.3.50.0080.00821.21
8.3.40.0060.00918.76
8.3.30.0100.00320.20
8.3.20.0060.01220.25
8.3.10.0030.00521.92
8.3.00.0080.00022.46
8.2.180.0100.00518.04
8.2.170.0070.00722.96
8.2.160.0100.00322.26
8.2.150.0170.00324.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00420.68
8.2.110.0000.00922.31
8.2.100.0080.00417.72
8.2.90.0040.00419.21
8.2.80.0000.00919.12
8.2.70.0040.00417.50
8.2.60.0050.00318.03
8.2.50.0120.00018.07
8.2.40.0030.00520.07
8.2.30.0040.00419.54
8.2.20.0040.00417.55
8.2.10.0030.00517.61
8.2.00.0040.00417.68
8.1.280.0070.00725.92
8.1.270.0050.00323.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00023.98
8.1.230.0040.00719.02
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0080.00017.43
8.1.180.0030.00618.10
8.1.170.0000.00818.55
8.1.160.0070.00418.90
8.1.150.0050.00218.64
8.1.140.0060.00317.40
8.1.130.0070.00017.76
8.1.120.0000.00717.48
8.1.110.0000.00717.42
8.1.100.0000.00717.42
8.1.90.0040.00417.30
8.1.80.0030.00417.48
8.1.70.0000.00717.44
8.1.60.0060.00317.46
8.1.50.0000.00817.42
8.1.40.0040.00417.59
8.1.30.0050.00317.55
8.1.20.0030.00617.69
8.1.10.0040.00417.50
8.1.00.0000.00717.46
8.0.300.0030.00618.77
8.0.290.0000.00717.18
8.0.280.0080.00018.46
8.0.270.0040.00417.23
8.0.260.0000.00816.88
8.0.250.0030.00317.02
8.0.240.0030.00516.91
8.0.230.0000.00716.99
8.0.220.0000.00716.92
8.0.210.0030.00316.95
8.0.200.0040.00417.00
8.0.190.0030.00316.91
8.0.180.0040.00416.82
8.0.170.0040.00416.95
8.0.160.0030.00516.87
8.0.150.0000.00716.82
8.0.140.0040.00416.86
8.0.130.0000.00513.36
8.0.120.0000.00916.76
8.0.110.0000.00716.88
8.0.100.0000.00717.03
8.0.90.0040.00416.86
8.0.80.0130.00316.89
8.0.70.0020.00516.82
8.0.60.0040.00416.93
8.0.50.0000.00816.78
8.0.30.0090.01117.24
8.0.20.0090.00917.40
8.0.10.0040.00416.97
8.0.00.0080.01016.65
7.4.330.0000.00415.00
7.4.320.0000.00816.60
7.4.300.0030.00316.63
7.4.290.0070.00016.56
7.4.280.0040.00316.36
7.4.270.0030.00316.52
7.4.260.0000.00513.29
7.4.250.0020.00516.57
7.4.240.0020.00616.57
7.4.230.0030.00316.63
7.4.220.0070.01016.60
7.4.210.0080.00716.59
7.4.200.0000.00716.49
7.4.190.0040.00416.47
7.4.160.0080.00816.55
7.4.150.0080.01117.40
7.4.140.0100.00817.86
7.4.130.0110.00916.60
7.4.120.0100.00816.62
7.4.110.0100.01416.57
7.4.100.0160.00316.70
7.4.90.0100.00616.55
7.4.80.0100.01019.39
7.4.70.0150.00816.56
7.4.60.0060.01716.61
7.4.50.0060.00316.31
7.4.40.0140.00422.77
7.4.30.0060.00916.53
7.4.00.0030.01314.90
7.3.330.0020.00213.14
7.3.320.0000.00513.30
7.3.310.0040.00416.25
7.3.300.0030.00316.29
7.3.290.0070.00716.34
7.3.280.0090.00816.33
7.3.270.0000.01717.40
7.3.260.0030.01616.29
7.3.250.0080.00816.57
7.3.240.0170.00016.59
7.3.230.0120.00616.59
7.3.210.0160.00316.37
7.3.200.0120.00619.39
7.3.190.0080.01116.54
7.3.180.0060.01116.38
7.3.170.0060.01016.67
7.3.160.0060.00916.66
7.3.120.0040.01415.05
7.3.10.0060.00616.59
7.3.00.0070.00316.50
7.2.330.0060.01116.71
7.2.320.0030.01316.86
7.2.310.0100.00716.82
7.2.300.0100.01016.63
7.2.290.0040.01216.73
7.2.130.0040.01116.96
7.2.120.0070.00716.92
7.2.110.0100.00616.93
7.2.100.0050.00516.93
7.2.90.0040.01116.92
7.2.80.0130.00316.99
7.2.70.0040.00716.96
7.2.60.0040.01117.09
7.2.50.0030.00617.04
7.2.40.0030.01016.81
7.2.30.0090.00616.76
7.2.20.0070.00416.71
7.2.10.0030.01016.98
7.2.00.0040.01218.16
7.1.250.0100.00315.77
7.1.200.0070.00315.89
7.1.100.0030.01018.13
7.1.70.0000.00917.25
7.1.60.0070.01119.21
7.1.50.0090.01216.62
7.1.00.0030.03322.40
7.0.200.0040.00416.82
7.0.140.0030.07322.06
7.0.100.0030.07720.02
7.0.90.0000.04319.86
7.0.80.0030.06319.96
7.0.70.0030.04019.89
7.0.60.0000.04020.06
7.0.50.0130.05320.34
7.0.40.0100.03720.11
7.0.30.0000.04720.18
7.0.20.0030.04320.15
7.0.10.0030.05720.12
7.0.00.0000.06320.04
5.6.280.0030.07321.07
5.6.250.0000.05020.59
5.6.240.0000.05020.68
5.6.230.0030.04720.57
5.6.220.0100.03320.73
5.6.210.0070.03320.55
5.6.200.0130.03321.04
5.6.190.0030.04321.18
5.6.180.0030.04021.19
5.6.170.0070.07321.04
5.6.160.0070.03721.04
5.6.150.0000.04721.11
5.6.140.0070.04020.98
5.6.130.0070.04021.09
5.6.120.0070.04020.93
5.6.110.0000.05020.95
5.6.100.0030.04021.08
5.6.90.0070.05721.16
5.6.80.0070.08020.53
5.6.70.0000.07020.41
5.6.60.0100.05720.45
5.6.50.0070.06320.36
5.6.40.0170.07320.41
5.6.30.0070.08720.38
5.6.20.0200.07320.42
5.6.10.0130.07320.46
5.6.00.0170.07320.41
5.5.380.0100.03320.41
5.5.370.0030.05020.39
5.5.360.0030.04320.51
5.5.350.0000.04320.33
5.5.340.0030.04020.86
5.5.330.0030.04020.81
5.5.320.0070.06320.91
5.5.310.0030.03720.93
5.5.300.0070.03720.87
5.5.290.0070.03720.93
5.5.280.0030.04020.87
5.5.270.0100.03320.63
5.5.260.0100.07320.77
5.5.250.0000.04020.64
5.5.240.0100.04320.16
5.5.230.0130.07320.23
5.5.220.0070.07020.24
5.5.210.0100.05020.22
5.5.200.0100.05020.26
5.5.190.0170.05320.24
5.5.180.0130.07020.00
5.5.160.0100.07720.27
5.5.150.0130.07020.27
5.5.140.0070.07720.18
5.5.130.0030.07020.18
5.5.120.0070.08020.13
5.5.110.0170.06720.12
5.5.100.0070.07020.09
5.5.90.0070.06720.02
5.5.80.0100.08020.12
5.5.70.0070.08320.15
5.5.60.0030.07720.10
5.5.50.0070.08020.10
5.5.40.0130.06319.94
5.5.30.0100.08020.00
5.5.20.0100.08020.15
5.5.10.0000.07719.98
5.5.00.0130.06719.98
5.4.450.0100.04719.18
5.4.440.0000.04319.50
5.4.430.0070.03319.36
5.4.420.0070.04019.53
5.4.410.0070.07319.29
5.4.400.0100.04019.18
5.4.390.0100.07019.05
5.4.380.0070.07319.05
5.4.370.0100.07319.05
5.4.360.0070.06318.85
5.4.350.0170.07019.04
5.4.340.0000.08319.11
5.4.320.0100.07318.92
5.4.310.0130.06319.24
5.4.300.0170.06719.18
5.4.290.0100.07719.12
5.4.280.0130.07019.21
5.4.270.0000.08318.85
5.4.260.0070.07319.04
5.4.250.0100.06719.13
5.4.240.0100.06319.16
5.4.230.0000.08719.13
5.4.220.0170.06719.09
5.4.210.0100.07319.11
5.4.200.0100.07319.13
5.4.190.0100.07319.09
5.4.180.0070.04318.94
5.4.170.0070.07319.04
5.4.160.0000.06719.03
5.4.150.0030.08319.02
5.4.140.0100.04016.33
5.4.130.0070.06316.41
5.4.120.0070.05016.42
5.4.110.0030.03716.40
5.4.100.0100.04016.47
5.4.90.0070.03316.39
5.4.80.0030.06716.32
5.4.70.0070.04016.35
5.4.60.0070.06716.32
5.4.50.0100.05716.48
5.4.40.0130.06316.42
5.4.30.0170.06316.40
5.4.20.0070.06316.45
5.4.10.0030.07716.50
5.4.00.0030.07315.87
5.3.290.0100.07714.64
5.3.280.0030.05314.71
5.3.270.0100.07314.67
5.3.260.0130.07014.67
5.3.250.0070.08014.74
5.3.240.0070.07314.73
5.3.230.0100.07314.65
5.3.220.0170.05014.60
5.3.210.0070.04314.63
5.3.200.0030.05714.68
5.3.190.0070.03714.68
5.3.180.0030.08014.54
5.3.170.0100.07014.63
5.3.160.0100.06314.70
5.3.150.0030.04014.51
5.3.140.0070.08014.50
5.3.130.0130.06014.57
5.3.120.0000.07714.52
5.3.110.0100.07314.66
5.3.100.0030.07313.98
5.3.90.0070.04714.12
5.3.80.0070.04014.16
5.3.70.0230.05714.05
5.3.60.0030.07713.99
5.3.50.0070.06314.01
5.3.40.0070.06714.05
5.3.30.0130.07013.95
5.3.20.0070.05313.75
5.3.10.0030.05013.64
5.3.00.0100.07013.73
5.2.170.0030.05711.28
5.2.160.0100.05711.26
5.2.150.0030.05711.20
5.2.140.0030.06311.20
5.2.130.0030.06011.19
5.2.120.0100.05011.12
5.2.110.0170.05311.16
5.2.100.0070.06011.23
5.2.90.0070.05711.13
5.2.80.0100.05711.23
5.2.70.0030.06011.16
5.2.60.0030.06010.99
5.2.50.0100.05011.08
5.2.40.0130.03310.91
5.2.30.0070.06311.08
5.2.20.0070.06311.05
5.2.10.0030.04010.98
5.2.00.0030.06010.78
5.1.60.0030.05310.09
5.1.50.0100.05010.11
5.1.40.0030.05310.09
5.1.30.0130.05010.34
5.1.20.0070.05310.27
5.1.10.0030.04710.18
5.1.00.0070.05310.19
5.0.50.0070.04310.09
5.0.40.0000.04710.09
5.0.30.0000.06310.09
5.0.20.0070.04310.09
5.0.10.0100.04010.09
5.0.00.0070.06010.09
4.4.90.0030.03310.09
4.4.80.0030.03310.09
4.4.70.0030.03310.09
4.4.60.0000.03710.09
4.4.50.0070.03310.09
4.4.40.0030.05010.09
4.4.30.0030.03710.09
4.4.20.0070.03310.09
4.4.10.0030.02310.09
4.4.00.0030.05310.09
4.3.110.0030.03310.09
4.3.100.0070.03010.09
4.3.90.0000.03710.09
4.3.80.0070.05010.09
4.3.70.0030.03310.09
4.3.60.0030.03310.09
4.3.50.0070.03010.09
4.3.40.0000.04310.09
4.3.30.0030.03310.09
4.3.20.0000.03310.09
4.3.10.0000.03710.09
4.3.00.0000.03710.09

preferences:
45.21 ms | 401 KiB | 5 Q