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(0,null,'HJFG');

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.0070.01116.75
8.3.50.0160.00321.27
8.3.40.0110.00418.79
8.3.30.0070.01020.21
8.3.20.0120.00320.04
8.3.10.0040.00422.15
8.3.00.0040.00422.52
8.2.180.0150.00616.63
8.2.170.0170.00322.96
8.2.160.0070.00722.21
8.2.150.0070.00724.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00620.80
8.2.110.0030.00722.25
8.2.100.0040.00817.91
8.2.90.0000.00817.84
8.2.80.0040.00417.97
8.2.70.0080.00017.25
8.2.60.0030.00918.04
8.2.50.0070.00418.07
8.2.40.0040.00419.89
8.2.30.0040.00419.31
8.2.20.0040.00417.71
8.2.10.0000.00717.73
8.2.00.0000.00819.64
8.1.280.0070.00725.92
8.1.270.0060.00323.99
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0060.00320.68
8.1.230.0110.00020.88
8.1.220.0050.00317.77
8.1.210.0000.00819.10
8.1.200.0000.00917.35
8.1.190.0060.00317.39
8.1.180.0050.00318.10
8.1.170.0030.00518.63
8.1.160.0000.00818.80
8.1.150.0000.00818.70
8.1.140.0050.00517.45
8.1.130.0030.00317.79
8.1.120.0020.00517.43
8.1.110.0000.00717.41
8.1.100.0080.00017.50
8.1.90.0040.00417.34
8.1.80.0040.00417.43
8.1.70.0040.00417.38
8.1.60.0090.00017.48
8.1.50.0060.00317.49
8.1.40.0030.00517.46
8.1.30.0000.00717.57
8.1.20.0000.00917.56
8.1.10.0060.00317.44
8.1.00.0040.00417.49
8.0.300.0000.00820.03
8.0.290.0040.00417.05
8.0.280.0050.00218.41
8.0.270.0040.00417.30
8.0.260.0070.00016.73
8.0.250.0030.00316.92
8.0.240.0060.00316.88
8.0.230.0000.00716.85
8.0.220.0040.00416.75
8.0.210.0030.00316.84
8.0.200.0000.00816.86
8.0.190.0000.00816.91
8.0.180.0070.00016.84
8.0.170.0040.00316.84
8.0.160.0030.00516.77
8.0.150.0050.00316.72
8.0.140.0080.00016.87
8.0.130.0050.00013.38
8.0.120.0000.00816.74
8.0.110.0040.00416.79
8.0.100.0000.00816.84
8.0.90.0050.00316.85
8.0.80.0090.01216.85
8.0.70.0030.00416.69
8.0.60.0000.00716.74
8.0.50.0000.00816.96
8.0.30.0120.00717.18
8.0.20.0090.01117.40
8.0.10.0000.00717.01
8.0.00.0100.01016.76
7.4.330.0040.00015.05
7.4.320.0060.00016.50
7.4.300.0040.00416.50
7.4.290.0070.00016.61
7.4.280.0000.00716.48
7.4.270.0040.00416.50
7.4.260.0050.00013.23
7.4.250.0050.00216.45
7.4.240.0050.00316.46
7.4.230.0030.00516.61
7.4.220.0060.01216.63
7.4.210.0110.00416.56
7.4.200.0070.00016.35
7.4.190.0000.00716.69
7.4.160.0170.00016.58
7.4.150.0070.01017.40
7.4.140.0100.00717.86
7.4.130.0080.01216.47
7.4.120.0070.01216.41
7.4.110.0170.00416.64
7.4.100.0040.01416.64
7.4.90.0080.00816.28
7.4.80.0120.01019.39
7.4.70.0100.00716.57
7.4.60.0060.01216.65
7.4.50.0050.00316.61
7.4.40.0080.00422.77
7.4.30.0110.00516.27
7.4.00.0030.01115.04
7.3.330.0000.00513.13
7.3.320.0020.00213.33
7.3.310.0040.00416.39
7.3.300.0030.00316.32
7.3.290.0100.00716.32
7.3.280.0080.01116.28
7.3.270.0170.00017.40
7.3.260.0000.02016.68
7.3.250.0100.00816.37
7.3.240.0110.01116.19
7.3.230.0060.01016.39
7.3.210.0120.00416.55
7.3.200.0110.00619.39
7.3.190.0140.00316.38
7.3.180.0110.00616.34
7.3.170.0070.01016.37
7.3.160.0120.00916.53
7.3.120.0070.01014.88
7.3.00.0070.00716.36
7.2.330.0060.01216.46
7.2.320.0060.01016.45
7.2.310.0060.01516.90
7.2.300.0060.01116.31
7.2.290.0090.01216.79
7.2.130.0100.00316.79
7.2.120.0060.00916.64
7.2.110.0110.00716.58
7.2.100.0090.00316.69
7.2.90.0000.01316.74
7.2.80.0130.00316.96
7.2.70.0070.00716.64
7.2.60.0110.00416.85
7.2.50.0050.00816.84
7.2.40.0070.00716.68
7.2.30.0060.00616.58
7.2.20.0100.00716.47
7.2.10.0040.01117.06
7.2.00.0040.01116.92
7.1.250.0090.00615.36
7.1.240.0100.00015.77
7.1.230.0110.00415.47
7.1.220.0040.01115.60
7.1.210.0120.00315.68
7.1.200.0080.00715.59
7.1.190.0030.01015.79
7.1.180.0140.00015.78
7.1.170.0130.00315.47
7.1.160.0110.00415.66
7.1.150.0060.00915.92
7.1.140.0090.00615.41
7.1.130.0150.00015.49
7.1.120.0060.00615.79
7.1.110.0110.00415.81
7.1.100.0090.00516.88
7.1.90.0030.01015.73
7.1.80.0030.01015.75
7.1.70.0010.00816.51
7.1.60.0050.01217.53
7.1.50.0080.00816.31
7.1.40.0070.00715.87
7.1.30.0100.00315.52
7.1.20.0070.00415.75
7.1.10.0120.00415.95
7.1.00.0040.03619.11
7.0.330.0090.00315.50
7.0.320.0160.00315.12
7.0.310.0100.00715.41
7.0.300.0080.00815.33
7.0.290.0100.00714.82
7.0.280.0070.00715.26
7.0.270.0110.00415.13
7.0.260.0060.00315.08
7.0.250.0110.00315.45
7.0.240.0080.00315.38
7.0.230.0060.00615.54
7.0.220.0070.00715.39
7.0.210.0080.00815.24
7.0.200.0080.00315.99
7.0.190.0090.00315.43
7.0.180.0080.00415.41
7.0.170.0070.00415.50
7.0.160.0030.01315.28
7.0.150.0080.00515.32
7.0.140.0100.03518.80
7.0.130.0030.00715.54
7.0.120.0130.00015.28
7.0.110.0090.00615.41
7.0.100.0070.04417.67
7.0.90.0080.04417.63
7.0.80.0080.04317.69
7.0.70.0090.04417.59
7.0.60.0120.04017.53
7.0.50.0050.03018.00
7.0.40.0090.04116.76
7.0.30.0070.03316.66
7.0.20.0050.04716.51
7.0.10.0090.04216.81
7.0.00.0070.04216.71
5.6.380.0040.00814.54
5.6.370.0060.00614.67
5.6.360.0030.01214.48
5.6.350.0030.00614.41
5.6.340.0080.00414.38
5.6.330.0040.01114.40
5.6.320.0060.00614.42
5.6.310.0090.00014.61
5.6.300.0040.00814.52
5.6.290.0080.00414.19
5.6.280.0070.03517.56
5.6.270.0100.00014.44
5.6.260.0060.00713.91
5.6.250.0090.04417.53
5.6.240.0050.02817.50
5.6.230.0040.04717.42
5.6.220.0030.04917.51
5.6.210.0030.04317.28
5.6.200.0120.03717.57
5.6.190.0030.04717.82
5.6.180.0030.04917.60
5.6.170.0030.04917.71
5.6.160.0070.02717.74
5.6.150.0120.03517.71
5.6.140.0060.04617.65
5.6.130.0050.04717.64
5.6.120.0010.04917.61
5.6.110.0100.04317.71
5.6.100.0050.03717.51
5.6.90.0070.04217.63
5.6.80.0080.04417.20
5.6.70.0100.03817.30
5.6.60.0100.02317.29
5.6.50.0020.03517.23
5.6.40.0020.02817.36
5.6.30.0030.04517.51
5.6.20.0110.02117.23
5.6.10.0050.02217.20
5.6.00.0070.01817.29
5.5.380.0050.04415.81
5.5.370.0040.04515.89
5.5.360.0080.03015.90
5.5.350.0080.04215.74
5.5.340.0090.03516.01
5.5.330.0090.04215.95
5.5.320.0010.04616.03
5.5.310.0140.03315.90
5.5.300.0050.04215.99
5.5.290.0080.03215.91
5.5.280.0030.04515.98
5.5.270.0080.03316.05
5.5.260.0020.05115.95
5.5.250.0080.04115.90
5.5.240.0120.03215.62
5.5.230.0100.03515.64
5.5.220.0070.02015.74
5.5.210.0030.02215.75
5.5.200.0040.02715.53
5.5.190.0030.02215.63
5.5.180.0030.02315.67
5.5.170.0070.00011.06
5.5.160.0050.03215.66
5.5.150.0050.04215.61
5.5.140.0050.03415.75
5.5.130.0030.02015.75
5.5.120.0060.02515.62
5.5.110.0020.02715.62
5.5.100.0030.02215.74
5.5.90.0030.02115.56
5.5.80.0050.02315.62
5.5.70.0050.02815.65
5.5.60.0020.02215.59
5.5.50.0020.03815.51
5.5.40.0120.03015.60
5.5.30.0110.01315.58
5.5.20.0030.02915.55
5.5.10.0020.02315.64
5.5.00.0060.02015.56
5.4.450.0030.04415.15
5.4.440.0100.03715.14
5.4.430.0070.04015.26
5.4.420.0050.02315.15
5.4.410.0100.03315.18
5.4.400.0060.03314.97
5.4.390.0070.03815.09
5.4.380.0060.02115.09
5.4.370.0030.02514.97
5.4.360.0050.01714.97
5.4.350.0040.02015.14
5.4.340.0050.03514.98
5.4.330.0060.00311.06
5.4.320.0030.02315.06
5.4.310.0050.02015.11
5.4.300.0050.03915.05
5.4.290.0030.04115.11
5.4.280.0050.03915.10
5.4.270.0030.02314.97
5.4.260.0070.02015.13
5.4.250.0010.02514.94
5.4.240.0050.03315.11
5.4.230.0030.02115.00
5.4.220.0050.02015.05
5.4.210.0070.03414.95
5.4.200.0030.03214.96
5.4.190.0030.01914.96
5.4.180.0040.02814.96
5.4.170.0020.02215.07
5.4.160.0070.02515.04
5.4.150.0030.02314.95
5.4.140.0040.02313.70
5.4.130.0040.02013.62
5.4.120.0030.01913.73
5.4.110.0050.01913.77
5.4.100.0050.01813.73
5.4.90.0060.01913.76
5.4.80.0030.01913.75
5.4.70.0020.01813.74
5.4.60.0060.02113.81
5.4.50.0040.02013.71
5.4.40.0030.02213.78
5.4.30.0020.02013.71
5.4.20.0050.01813.70
5.4.10.0040.02213.77
5.4.00.0050.02313.42
5.3.290.0030.02212.87
5.3.280.0030.02312.89
5.3.270.0030.02512.88
5.3.260.0020.02112.84
5.3.250.0020.02212.84
5.3.240.0030.02412.82
5.3.230.0090.01812.81
5.3.220.0030.02212.87
5.3.210.0060.01712.82
5.3.200.0050.02412.85
5.3.190.0100.01312.80
5.3.180.0030.02312.81
5.3.170.0060.01812.87
5.3.160.0050.01812.78
5.3.150.0020.02212.80
5.3.140.0040.02112.79
5.3.130.0040.02212.81
5.3.120.0050.01812.77
5.3.110.0010.02112.87
5.3.100.0030.04112.60
5.3.90.0050.02612.54
5.3.80.0060.01612.55
5.3.70.0030.03112.59
5.3.60.0090.01512.50
5.3.50.0050.02412.47
5.3.40.0130.03212.48
5.3.30.0050.02212.45
5.3.20.0030.03112.42
5.3.10.0040.03512.37
5.3.00.0080.03312.37
5.2.170.0070.03012.37
5.2.160.0030.02312.37
5.2.150.0050.03212.37
5.2.140.0030.03012.37
5.2.130.0070.01312.37
5.2.120.0020.03512.37
5.2.110.0030.03312.37
5.2.100.0000.02112.37
5.2.90.0030.03412.37
5.2.80.0020.03512.37
5.2.70.0030.03312.37
5.2.60.0050.02812.37
5.2.50.0030.02112.37
5.2.40.0000.03612.37
5.2.30.0020.02412.37
5.2.20.0050.03012.37
5.2.10.0030.03012.37
5.2.00.0040.03012.37
5.1.60.0050.02712.37
5.1.50.0050.01812.37
5.1.40.0030.03012.37
5.1.30.0050.03012.37
5.1.20.0030.03112.37
5.1.10.0040.02512.37
5.1.00.0080.01312.37
5.0.50.0020.02812.37
5.0.40.0030.02512.37
5.0.30.0030.02012.37
5.0.20.0000.02712.37
5.0.10.0030.02312.37
5.0.00.0030.03312.37
4.4.90.0020.01812.37
4.4.80.0000.01512.37
4.4.70.0020.01512.37
4.4.60.0020.01612.37
4.4.50.0050.01312.37
4.4.40.0040.02212.37
4.4.30.0040.01712.37
4.4.20.0020.02012.37
4.4.10.0050.01312.37
4.4.00.0050.02312.37
4.3.110.0000.02512.37
4.3.100.0030.01812.37
4.3.90.0020.01512.37
4.3.80.0010.02012.37
4.3.70.0030.01712.37
4.3.60.0030.01812.37
4.3.50.0020.01512.37
4.3.40.0050.01212.37
4.3.30.0100.01312.37
4.3.20.0030.02012.37
4.3.10.0020.01812.37
4.3.00.0030.01712.37

preferences:
45.78 ms | 401 KiB | 5 Q