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(7,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.0140.00016.75
8.3.50.0110.00917.28
8.3.40.0160.00018.56
8.3.30.0060.00918.72
8.3.20.0000.00918.52
8.3.10.0080.00018.79
8.3.00.0030.00519.00
8.2.180.0100.00716.50
8.2.170.0030.01022.96
8.2.160.0070.00721.20
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00420.74
8.2.110.0060.00319.23
8.2.100.0040.00717.72
8.2.90.0060.00319.30
8.2.80.0000.00719.34
8.2.70.0060.00317.50
8.2.60.0040.00417.80
8.2.50.0060.00318.07
8.2.40.0030.00517.92
8.2.30.0030.00517.95
8.2.20.0000.00817.66
8.2.10.0000.00717.80
8.2.00.0000.00717.67
8.1.280.0040.01125.92
8.1.270.0040.00424.66
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00721.94
8.1.230.0100.00020.91
8.1.220.0030.00617.78
8.1.210.0040.00418.82
8.1.200.0030.00617.23
8.1.190.0030.00517.52
8.1.180.0090.00018.10
8.1.170.0030.00618.91
8.1.160.0040.00418.92
8.1.150.0080.00018.60
8.1.140.0000.00717.32
8.1.130.0030.00317.71
8.1.120.0000.00717.37
8.1.110.0020.00517.49
8.1.100.0000.00717.41
8.1.90.0070.00017.34
8.1.80.0070.00017.44
8.1.70.0000.00717.45
8.1.60.0070.00317.48
8.1.50.0040.00417.53
8.1.40.0040.00417.44
8.1.30.0000.00817.65
8.1.20.0020.00517.53
8.1.10.0040.00417.52
8.1.00.0000.00817.44
8.0.300.0080.00019.98
8.0.290.0000.00716.75
8.0.280.0030.00318.34
8.0.270.0030.00317.26
8.0.260.0050.00216.81
8.0.250.0000.00716.88
8.0.240.0030.00316.96
8.0.230.0040.00416.95
8.0.220.0070.00016.78
8.0.210.0000.00716.80
8.0.200.0050.00316.91
8.0.190.0040.00416.98
8.0.180.0000.00716.93
8.0.170.0060.00316.80
8.0.160.0040.00316.79
8.0.150.0000.00816.80
8.0.140.0040.00416.74
8.0.130.0030.00313.35
8.0.120.0040.00416.73
8.0.110.0040.00416.91
8.0.100.0000.00716.78
8.0.90.0040.00416.76
8.0.80.0100.00316.84
8.0.70.0000.00816.88
8.0.60.0040.00416.92
8.0.50.0050.00316.74
8.0.30.0110.00816.88
8.0.20.0080.01017.27
8.0.10.0070.00016.89
8.0.00.0100.01016.72
7.4.330.0040.00012.89
7.4.320.0060.00016.60
7.4.300.0000.00616.68
7.4.290.0000.00716.51
7.4.280.0060.00316.42
7.4.270.0030.00316.56
7.4.260.0000.00513.28
7.4.250.0080.00016.54
7.4.240.0010.00616.51
7.4.230.0030.00316.60
7.4.220.0060.01316.68
7.4.210.0080.00616.52
7.4.200.0040.00416.52
7.4.190.0030.00316.68
7.4.160.0100.00616.43
7.4.150.0100.00716.53
7.4.140.0080.01016.41
7.4.130.0130.00516.64
7.4.120.0060.01116.51
7.4.110.0110.01116.58
7.4.100.0130.00416.43
7.4.90.0070.01016.41
7.4.80.0160.00616.61
7.4.70.0120.01116.47
7.4.60.0160.00016.38
7.4.50.0070.00416.41
7.4.40.0110.00416.48
7.4.30.0000.01716.29
7.4.10.0150.00314.66
7.4.00.0090.00714.89
7.3.330.0000.00613.31
7.3.320.0000.00613.30
7.3.310.0030.00316.36
7.3.300.0030.00316.31
7.3.290.0090.00616.44
7.3.280.0070.00816.33
7.3.270.0130.00416.33
7.3.260.0120.00916.45
7.3.250.0150.00416.43
7.3.240.0070.01016.37
7.3.230.0030.01316.38
7.3.210.0140.00416.48
7.3.200.0070.01119.39
7.3.190.0030.01516.29
7.3.180.0040.01216.31
7.3.170.0120.00316.59
7.3.160.0120.00316.50
7.3.130.0110.00714.75
7.3.120.0090.00814.88
7.3.110.0130.00714.81
7.3.100.0070.00714.95
7.3.90.0000.01114.95
7.3.80.0060.00614.40
7.3.70.0000.00814.91
7.3.60.0070.00715.04
7.3.50.0040.00414.97
7.3.40.0070.00714.66
7.3.30.0030.01014.98
7.3.20.0030.00616.79
7.3.10.0110.00416.78
7.3.00.0100.00716.85
7.2.330.0140.00416.70
7.2.320.0130.00316.71
7.2.310.0070.01116.71
7.2.300.0100.00716.61
7.2.290.0100.00616.73
7.2.260.0000.01815.26
7.2.250.0110.00714.66
7.2.240.0030.01014.59
7.2.230.0070.01015.25
7.2.220.0100.01014.77
7.2.210.0060.00614.93
7.2.200.0060.00615.13
7.2.190.0060.00914.75
7.2.180.0040.00715.14
7.2.170.0000.01315.07
7.2.160.0030.01215.02
7.2.150.0070.00716.89
7.2.140.0000.01017.09
7.2.130.0070.00717.01
7.2.120.0070.01016.97
7.2.110.0000.01516.93
7.2.100.0040.00816.91
7.2.90.0000.01516.84
7.2.80.0040.01116.91
7.2.70.0130.00316.92
7.2.60.0030.01316.66
7.2.50.0030.01216.79
7.2.40.0090.00916.83
7.2.30.0090.00617.11
7.2.20.0030.01317.09
7.2.10.0040.00816.64
7.2.00.0030.01217.99
7.1.330.0060.00315.93
7.1.320.0040.01215.91
7.1.310.0140.00015.69
7.1.300.0090.00015.88
7.1.290.0040.01115.86
7.1.280.0000.01415.80
7.1.270.0030.00615.69
7.1.260.0030.01016.05
7.1.250.0070.00715.80
7.1.240.0030.00615.82
7.1.230.0080.00815.68
7.1.220.0070.00715.81
7.1.210.0070.00715.89
7.1.200.0030.00615.56
7.1.190.0080.00815.88
7.1.180.0090.00615.96
7.1.170.0100.00315.74
7.1.160.0110.00315.70
7.1.150.0060.00915.63
7.1.140.0030.00715.77
7.1.130.0040.00715.70
7.1.120.0070.00715.91
7.1.110.0000.01215.96
7.1.100.0120.00716.59
7.1.90.0000.01415.66
7.1.80.0090.00315.90
7.1.70.0030.01116.52
7.1.60.0070.01217.48
7.1.50.0060.01325.23
7.1.40.0090.00615.89
7.1.30.0040.00815.69
7.1.20.0060.01015.46
7.1.10.0110.00015.85
7.1.00.0080.04019.07
7.0.330.0030.01015.39
7.0.320.0070.01115.61
7.0.310.0030.01415.44
7.0.300.0060.00615.38
7.0.290.0000.01115.36
7.0.280.0070.00415.63
7.0.270.0030.00615.55
7.0.260.0040.00815.55
7.0.250.0070.00315.27
7.0.240.0090.00015.57
7.0.230.0110.00615.62
7.0.220.0060.00615.41
7.0.210.0060.00615.49
7.0.200.0110.00414.95
7.0.190.0070.00715.23
7.0.180.0070.00715.21
7.0.170.0070.00715.44
7.0.160.0070.00715.38
7.0.150.0040.01115.53
7.0.140.0080.03718.60
7.0.130.0080.00315.27
7.0.120.0030.04118.69
7.0.110.0040.00415.30
7.0.100.0090.00315.23
7.0.90.0060.01215.39
7.0.80.0030.01015.35
7.0.70.0060.00615.70
7.0.60.0060.04617.74
7.0.50.0060.04516.64
7.0.40.0030.04715.54
7.0.30.0060.04115.51
7.0.20.0050.04715.59
7.0.10.0130.03615.58
7.0.00.0070.04115.58
5.6.400.0090.00614.15
5.6.390.0060.00314.44
5.6.380.0070.01114.64
5.6.370.0060.01214.50
5.6.360.0120.00314.15
5.6.350.0030.00914.41
5.6.340.0000.01514.27
5.6.330.0000.01414.62
5.6.320.0040.01414.08
5.6.310.0000.01213.85
5.6.300.0000.01514.67
5.6.290.0030.01014.41
5.6.280.0030.01014.11
5.6.270.0130.00314.62
5.6.260.0040.00814.63
5.6.250.0110.00314.05
5.6.240.0070.00714.08
5.6.230.0130.00314.43
5.6.220.0060.00914.21
5.6.210.0070.03517.58
5.6.200.0130.02716.37
5.6.190.0060.03716.10
5.6.180.0100.04016.26
5.6.170.0030.04816.18
5.6.160.0020.03016.36
5.6.150.0030.02416.19
5.6.140.0100.04016.31
5.6.130.0060.03116.32
5.6.120.0040.03316.29
5.6.110.0070.02216.29
5.6.100.0070.03916.16
5.6.90.0020.04816.36
5.6.80.0060.02515.90
5.6.70.0080.02015.99
5.6.60.0030.04015.83
5.6.50.0070.02816.01
5.6.40.0050.02315.85
5.6.30.0050.02515.82
5.6.20.0070.02215.88
5.6.10.0070.03615.99
5.6.00.0070.02315.77
5.5.380.0070.00713.99
5.5.370.0040.01014.02
5.5.360.0030.00614.38
5.5.350.0210.03817.20
5.5.340.0030.04716.13
5.5.330.0070.02816.14
5.5.320.0030.02616.10
5.5.310.0060.02816.07
5.5.300.0030.04516.14
5.5.290.0070.02316.01
5.5.280.0050.03316.20
5.5.270.0050.02416.22
5.5.260.0060.03516.27
5.5.250.0030.03115.88
5.5.240.0080.02615.83
5.5.230.0050.03915.77
5.5.220.0090.03515.69
5.5.210.0070.03915.83
5.5.200.0070.02515.88
5.5.190.0030.02815.74
5.5.180.0100.03915.79
5.5.170.0030.01014.34
5.5.160.0010.04215.71
5.5.150.0050.03815.70
5.5.140.0090.03815.80
5.5.130.0000.03815.73
5.5.120.0050.03515.77
5.5.110.0080.04015.75
5.5.100.0050.02515.61
5.5.90.0050.04315.66
5.5.80.0080.02915.80
5.5.70.0120.03815.84
5.5.60.0070.03515.71
5.5.50.0070.04015.86
5.5.40.0060.02215.65
5.5.30.0070.03815.67
5.5.20.0050.04015.74
5.5.10.0080.03515.71
5.5.00.0080.04215.67
5.4.450.0070.03515.26
5.4.440.0030.04515.34
5.4.430.0030.04015.06
5.4.420.0060.02615.25
5.4.410.0090.04015.20
5.4.400.0110.02714.98
5.4.390.0050.02315.03
5.4.380.0030.02315.14
5.4.370.0050.03115.09
5.4.360.0040.02315.04
5.4.350.0000.02715.06
5.4.340.0020.03214.97
5.4.330.0030.00310.98
5.4.320.0070.03815.00
5.4.310.0060.03814.81
5.4.300.0030.03015.04
5.4.290.0060.02115.09
5.4.280.0070.03315.15
5.4.270.0060.02515.10
5.4.260.0090.03115.01
5.4.250.0050.03315.08
5.4.240.0020.02914.87
5.4.230.0040.03814.92
5.4.220.0050.02514.95
5.4.210.0020.04815.08
5.4.200.0050.03514.95
5.4.190.0050.03415.04
5.4.180.0080.02515.09
5.4.170.0100.04015.08
5.4.160.0020.04114.98
5.4.150.0070.02514.88
5.4.140.0030.03013.83
5.4.130.0000.04713.52
5.4.120.0070.03813.78
5.4.110.0030.04313.59
5.4.100.0050.02213.64
5.4.90.0030.03213.59
5.4.80.0090.03513.77
5.4.70.0070.03513.65
5.4.60.0130.03313.70
5.4.50.0050.04213.77
5.4.40.0060.03813.84
5.4.30.0070.03613.66
5.4.20.0030.02513.81
5.4.10.0080.04013.49
5.4.00.0090.03713.35
5.3.290.0050.03812.68
5.3.280.0040.02612.57
5.3.270.0120.02712.65
5.3.260.0040.02712.69
5.3.250.0070.03612.60
5.3.240.0000.04312.56
5.3.230.0020.03712.45
5.3.220.0050.04312.38
5.3.210.0050.03812.49
5.3.200.0100.03312.45
5.3.190.0100.03712.49
5.3.180.0070.03912.55
5.3.170.0050.03712.50
5.3.160.0080.03812.47
5.3.150.0090.04012.48
5.3.140.0070.02212.55
5.3.130.0080.03512.55
5.3.120.0020.04312.56
5.3.110.0050.03712.50
5.3.100.0070.03712.17
5.3.90.0050.03312.20
5.3.80.0030.04012.24
5.3.70.0030.04312.12
5.3.60.0020.04512.34
5.3.50.0040.03112.13
5.3.40.0060.03912.22
5.3.30.0090.02312.26
5.3.20.0080.04011.98
5.3.10.0060.04012.00
5.3.00.0100.03511.96
5.2.170.0100.06011.15
5.2.160.0100.04711.13
5.2.150.0000.04711.13
5.2.140.0100.05711.15
5.2.130.0070.04711.10
5.2.120.0070.06311.32
5.2.110.0130.04311.00
5.2.100.0030.06311.00
5.2.90.0070.05311.14
5.2.80.0030.04311.14
5.2.70.0000.04311.12
5.2.60.0030.03311.05
5.2.50.0000.03710.98
5.2.40.0000.06711.02
5.2.30.0100.03011.07
5.2.20.0000.03710.92
5.2.10.0070.05710.92
5.2.00.0070.06010.81
5.1.60.0030.0439.97
5.1.50.0000.05710.09
5.1.40.0030.03710.05
5.1.30.0000.05310.43
5.1.20.0070.04310.56
5.1.10.0030.04710.12
5.1.00.0100.05310.05
5.0.50.0030.0478.72
5.0.40.0000.0478.72
5.0.30.0070.0508.72
5.0.20.0070.0278.72
5.0.10.0030.0208.72
5.0.00.0000.0478.72
4.4.90.0030.0178.72
4.4.80.0000.0178.72
4.4.70.0000.0208.72
4.4.60.0100.0308.72
4.4.50.0070.0238.72
4.4.40.0030.0308.72
4.4.30.0000.0338.72
4.4.20.0030.0208.72
4.4.10.0100.0308.72
4.4.00.0000.0478.72
4.3.110.0070.0338.72
4.3.100.0000.0338.72
4.3.90.0030.0178.72
4.3.80.0000.0408.72
4.3.70.0000.0278.72
4.3.60.0030.0238.72
4.3.50.0030.0338.72
4.3.40.0000.0508.72
4.3.30.0070.0308.72
4.3.20.0000.0278.72
4.3.10.0030.0208.72
4.3.00.0000.0338.72

preferences:
43.46 ms | 401 KiB | 5 Q