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 . $querystring_amount; return $querystring; } echo comment_retrieve(435456,'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.0090.00916.50
8.3.50.0140.00721.09
8.3.40.0070.00718.71
8.3.30.0170.00320.29
8.3.20.0040.00420.29
8.3.10.0040.00421.94
8.3.00.0050.00222.51
8.2.180.0110.01116.63
8.2.170.0070.00722.96
8.2.160.0090.00622.29
8.2.150.0100.01024.18
8.2.140.0040.00424.66
8.2.130.0030.00626.16
8.2.120.0040.00420.71
8.2.110.0000.00922.24
8.2.100.0130.00017.72
8.2.90.0000.00919.26
8.2.80.0000.00819.34
8.2.70.0040.00417.50
8.2.60.0040.00417.93
8.2.50.0090.00018.07
8.2.40.0040.00420.07
8.2.30.0000.00719.36
8.2.20.0000.00817.64
8.2.10.0060.00317.69
8.2.00.0040.00417.55
8.1.280.0130.00725.92
8.1.270.0000.00823.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.00723.73
8.1.230.0030.00719.07
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0030.00717.22
8.1.190.0080.00017.43
8.1.180.0030.00519.01
8.1.170.0080.00018.66
8.1.160.0000.01018.82
8.1.150.0000.00718.63
8.1.140.0100.00017.55
8.1.130.0030.00317.78
8.1.120.0000.00717.46
8.1.110.0050.00317.34
8.1.100.0040.00417.48
8.1.90.0050.00317.42
8.1.80.0000.00717.47
8.1.70.0030.00317.40
8.1.60.0050.00317.57
8.1.50.0040.00417.37
8.1.40.0040.00417.37
8.1.30.0040.00417.61
8.1.20.0000.00817.48
8.1.10.0000.00817.37
8.1.00.0070.00017.48
8.0.300.0000.00818.77
8.0.290.0070.00017.18
8.0.280.0030.00318.36
8.0.270.0070.00017.30
8.0.260.0030.00316.83
8.0.250.0000.00716.85
8.0.240.0070.00016.95
8.0.230.0050.00216.86
8.0.220.0030.00316.83
8.0.210.0070.00016.85
8.0.200.0030.00516.96
8.0.190.0040.00416.84
8.0.180.0070.00016.93
8.0.170.0040.00416.89
8.0.160.0000.00716.93
8.0.150.0000.00716.86
8.0.140.0000.00716.74
8.0.130.0030.00313.36
8.0.120.0080.00016.96
8.0.110.0050.00316.78
8.0.100.0040.00416.79
8.0.90.0000.00716.69
8.0.80.0030.01316.86
8.0.70.0040.00416.88
8.0.60.0030.00516.90
8.0.50.0040.00416.93
8.0.30.0080.01117.09
8.0.20.0110.01217.40
8.0.10.0050.00217.04
8.0.00.0070.01316.69
7.4.330.0020.00215.00
7.4.320.0030.00316.60
7.4.300.0030.00316.59
7.4.290.0000.00816.53
7.4.280.0000.00716.48
7.4.270.0030.00316.46
7.4.260.0060.00013.30
7.4.250.0040.00416.55
7.4.240.0020.00516.57
7.4.230.0030.00316.38
7.4.220.0030.01416.61
7.4.210.0080.00816.65
7.4.200.0040.00416.57
7.4.190.0000.00716.45
7.4.160.0150.00016.37
7.4.150.0090.00917.40
7.4.140.0130.00517.86
7.4.130.0090.00816.44
7.4.120.0070.01316.53
7.4.110.0160.01016.48
7.4.100.0140.00316.42
7.4.90.0100.00716.44
7.4.80.0070.01019.39
7.4.70.0050.01116.39
7.4.60.0030.01516.50
7.4.50.0040.00416.18
7.4.40.0000.01722.77
7.4.30.0060.01016.46
7.4.10.0110.00715.17
7.4.00.0100.00515.01
7.3.330.0050.00013.29
7.3.320.0000.00613.32
7.3.310.0000.00716.29
7.3.300.0070.00016.18
7.3.290.0130.00616.32
7.3.280.0100.00716.33
7.3.270.0100.00717.40
7.3.260.0160.00316.35
7.3.250.0070.01016.36
7.3.240.0080.00816.54
7.3.230.0120.00616.65
7.3.210.0120.00416.25
7.3.200.0170.00419.39
7.3.190.0090.00916.30
7.3.180.0070.01416.62
7.3.170.0130.00316.54
7.3.160.0090.00916.63
7.3.130.0060.00914.88
7.3.120.0130.00514.90
7.3.110.0090.00915.05
7.3.100.0060.01215.07
7.3.90.0090.00614.82
7.3.80.0060.00614.98
7.3.70.0030.01014.80
7.3.60.0060.00914.89
7.3.50.0090.00414.71
7.3.40.0000.01114.92
7.3.30.0000.00915.00
7.3.20.0000.01016.44
7.3.10.0110.00716.19
7.3.00.0120.00616.28
7.2.330.0090.00916.59
7.2.320.0060.01216.57
7.2.310.0060.01016.80
7.2.300.0130.00316.48
7.2.290.0150.00616.75
7.2.260.0030.01615.02
7.2.250.0080.00615.11
7.2.240.0070.01014.99
7.2.230.0000.01715.35
7.2.220.0100.00714.75
7.2.210.0030.01415.14
7.2.200.0070.00714.98
7.2.190.0060.00915.02
7.2.180.0000.01115.07
7.2.170.0070.00715.26
7.2.160.0030.01014.99
7.2.150.0040.01416.88
7.2.140.0070.00716.92
7.2.130.0070.01216.65
7.2.120.0050.01016.51
7.2.110.0160.00316.77
7.2.100.0100.00816.48
7.2.90.0080.01116.58
7.2.80.0060.00816.55
7.2.70.0100.00716.46
7.2.60.0130.00316.36
7.2.50.0130.00416.56
7.2.40.0060.00916.47
7.2.30.0100.00516.49
7.2.20.0110.00616.40
7.2.10.0060.00816.52
7.2.00.0090.00216.80
7.1.330.0090.00615.71
7.1.320.0000.01415.69
7.1.310.0070.00715.64
7.1.300.0110.00315.92
7.1.290.0000.01315.86
7.1.280.0070.00715.85
7.1.270.0030.00715.75
7.1.260.0090.00315.48
7.1.250.0100.00415.44
7.1.240.0030.01215.52
7.1.230.0000.01115.83
7.1.220.0100.00315.93
7.1.210.0000.01215.81
7.1.200.0060.00915.86
7.1.190.0070.00715.65
7.1.180.0110.00015.49
7.1.170.0050.00315.80
7.1.160.0070.00315.61
7.1.150.0040.00415.73
7.1.140.0090.00315.79
7.1.130.0030.00915.70
7.1.120.0040.00715.40
7.1.110.0080.00015.56
7.1.100.0000.01015.44
7.1.90.0030.00515.74
7.1.80.0000.01215.83
7.1.70.0110.00016.32
7.1.60.0060.00716.36
7.1.50.0040.01516.29
7.1.40.0070.00715.76
7.1.30.0030.00915.79
7.1.20.0070.00715.46
7.1.10.0100.00715.69
7.1.00.0020.03119.12
7.0.330.0030.00915.59
7.0.320.0070.00315.46
7.0.310.0060.00315.53
7.0.300.0030.00915.63
7.0.290.0040.00415.45
7.0.280.0030.00615.16
7.0.270.0070.00715.54
7.0.260.0030.00915.52
7.0.250.0030.00615.25
7.0.240.0120.00315.41
7.0.230.0070.00715.52
7.0.220.0090.00615.55
7.0.210.0060.00615.36
7.0.200.0070.01016.18
7.0.190.0070.00715.50
7.0.180.0060.00615.58
7.0.170.0000.01115.61
7.0.160.0030.01415.46
7.0.150.0030.01415.47
7.0.140.0070.04118.76
7.0.130.0110.00415.27
7.0.120.0060.00615.51
7.0.110.0030.01015.43
7.0.100.0030.02617.68
7.0.90.0060.02517.64
7.0.80.0100.03717.59
7.0.70.0060.02017.69
7.0.60.0050.02217.68
7.0.50.0150.03517.78
7.0.40.0020.05316.68
7.0.30.0100.04116.78
7.0.20.0070.04516.84
7.0.10.0120.03816.70
7.0.00.0070.04716.90
5.6.400.0060.00614.32
5.6.390.0090.00614.49
5.6.380.0000.01014.31
5.6.370.0060.00914.39
5.6.360.0000.00914.14
5.6.350.0070.00714.45
5.6.340.0040.00714.49
5.6.330.0060.00614.22
5.6.320.0060.00614.08
5.6.310.0080.00814.53
5.6.300.0100.00714.30
5.6.290.0070.00414.64
5.6.280.0040.04217.69
5.6.270.0080.00014.33
5.6.260.0000.01014.30
5.6.250.0110.03017.41
5.6.240.0080.02117.40
5.6.230.0010.02617.35
5.6.220.0000.02717.32
5.6.210.0070.04017.41
5.6.200.0060.02517.60
5.6.190.0090.04017.82
5.6.180.0110.04317.65
5.6.170.0050.04517.68
5.6.160.0110.03817.59
5.6.150.0120.03817.73
5.6.140.0060.03817.61
5.6.130.0070.02717.55
5.6.120.0050.04417.62
5.6.110.0070.04617.48
5.6.100.0050.04117.53
5.6.90.0070.02717.48
5.6.80.0030.04517.41
5.6.70.0030.04217.18
5.6.60.0040.03717.28
5.6.50.0080.03817.29
5.6.40.0070.03017.42
5.6.30.0100.03817.28
5.6.20.0050.04017.36
5.6.10.0030.03717.28
5.6.00.0060.04117.34
5.5.380.0080.02017.21
5.5.370.0000.02717.32
5.5.360.0020.02617.25
5.5.350.0080.02017.46
5.5.340.0000.02917.44
5.5.330.0100.04117.62
5.5.320.0100.02817.49
5.5.310.0080.04317.61
5.5.300.0080.04017.50
5.5.290.0120.04217.42
5.5.280.0120.03717.53
5.5.270.0050.04717.53
5.5.260.0060.04017.60
5.5.250.0070.04517.49
5.5.240.0120.03917.14
5.5.230.0090.02217.22
5.5.220.0090.04017.18
5.5.210.0050.04617.12
5.5.200.0080.04317.17
5.5.190.0070.02817.17
5.5.180.0030.02517.18
5.5.170.0030.01014.25
5.5.160.0100.03717.19
5.5.150.0070.03817.29
5.5.140.0070.04217.27
5.5.130.0080.04217.16
5.5.120.0050.04617.14
5.5.110.0130.03917.15
5.5.100.0080.04216.94
5.5.90.0020.04317.17
5.5.80.0180.02517.20
5.5.70.0030.04517.11
5.5.60.0050.04316.97
5.5.50.0060.02517.10
5.5.40.0090.03217.19
5.5.30.0080.02217.09
5.5.20.0030.04717.15
5.5.10.0050.04517.23
5.5.00.0080.03317.23
5.4.450.0050.03315.79
5.4.440.0030.02815.72
5.4.430.0080.04215.78
5.4.420.0080.04115.71
5.4.410.0030.04015.74
5.4.400.0060.04515.59
5.4.390.0090.04015.59
5.4.380.0120.04015.62
5.4.370.0090.03715.45
5.4.360.0030.03815.64
5.4.350.0100.03515.60
5.4.340.0050.04015.46
5.4.330.0000.01312.04
5.4.320.0080.03515.61
5.4.310.0120.03415.61
5.4.300.0100.03815.63
5.4.290.0030.03015.60
5.4.280.0030.03815.54
5.4.270.0090.03015.57
5.4.260.0080.03915.59
5.4.250.0030.02515.59
5.4.240.0070.03815.58
5.4.230.0030.04715.54
5.4.220.0130.03315.63
5.4.210.0100.03815.59
5.4.200.0050.04415.60
5.4.190.0080.03015.53
5.4.180.0050.04315.55
5.4.170.0080.02115.61
5.4.160.0070.02215.54
5.4.150.0070.03415.53
5.4.140.0080.03514.25
5.4.130.0050.03814.16
5.4.120.0070.01814.16
5.4.110.0030.03914.26
5.4.100.0040.03714.27
5.4.90.0060.03514.26
5.4.80.0020.04314.20
5.4.70.0080.03414.27
5.4.60.0030.02714.18
5.4.50.0050.03114.20
5.4.40.0050.03714.22
5.4.30.0060.02214.22
5.4.20.0050.02514.21
5.4.10.0080.02514.17
5.4.00.0080.03513.96
5.3.290.0030.04313.42
5.3.280.0050.04213.35
5.3.270.0070.03313.29
5.3.260.0030.04113.33
5.3.250.0070.03613.31
5.3.240.0080.03513.32
5.3.230.0050.02513.35
5.3.220.0030.02413.31
5.3.210.0070.04013.34
5.3.200.0020.02913.37
5.3.190.0030.04113.37
5.3.180.0030.04213.35
5.3.170.0050.03813.36
5.3.160.0050.04013.35
5.3.150.0070.03913.27
5.3.140.0000.03713.36
5.3.130.0080.03313.26
5.3.120.0050.03913.36
5.3.110.0000.04613.26
5.3.100.0030.03913.02
5.3.90.0050.03513.08
5.3.80.0100.01813.05
5.3.70.0060.03113.04
5.3.60.0080.03313.03
5.3.50.0070.02112.96
5.3.40.0050.03913.06
5.3.30.0040.03912.93
5.3.20.0070.03712.81
5.3.10.0090.03312.86
5.3.00.0030.04512.87
5.2.170.0030.04311.17
5.2.160.0070.05711.08
5.2.150.0070.06311.20
5.2.140.0100.03311.16
5.2.130.0100.05311.19
5.2.120.0070.05711.13
5.2.110.0000.06311.23
5.2.100.0000.06311.21
5.2.90.0130.02711.22
5.2.80.0030.06011.08
5.2.70.0030.06711.08
5.2.60.0030.06011.16
5.2.50.0030.06311.08
5.2.40.0030.06011.08
5.2.30.0030.06311.08
5.2.20.0100.05711.08
5.2.10.0070.05711.08
5.2.00.0000.04311.08
5.1.60.0030.05311.08
5.1.50.0030.05311.08
5.1.40.0030.05311.08
5.1.30.0070.05711.08
5.1.20.0030.04311.08
5.1.10.0070.04311.08
5.1.00.0070.05311.08
5.0.50.0100.04011.08
5.0.40.0000.03311.08
5.0.30.0100.05311.08
5.0.20.0070.03711.08
5.0.10.0070.03311.08
5.0.00.0030.04711.08
4.4.90.0030.03711.08
4.4.80.0030.03311.08
4.4.70.0030.03311.08
4.4.60.0030.01711.08
4.4.50.0000.02711.08
4.4.40.0000.03311.08
4.4.30.0070.03011.08
4.4.20.0000.03311.08
4.4.10.0000.04011.08
4.4.00.0000.05711.08
4.3.110.0030.03011.08
4.3.100.0030.02311.08
4.3.90.0100.02711.08
4.3.80.0000.05311.08
4.3.70.0000.02711.08
4.3.60.0000.03311.08
4.3.50.0070.02711.08
4.3.40.0000.05311.08
4.3.30.0000.03711.08
4.3.20.0000.03711.08
4.3.10.0000.02711.08
4.3.00.0000.02711.08

preferences:
45.41 ms | 401 KiB | 5 Q