3v4l.org

run code in 300+ PHP versions simultaneously
<?php session_start(); extract(@$_SESSION); include('mysql.php'); extract($_POST); require_once 'tools/HTMLPurifier.standalone.php'; if (@$editFlag != "1"){ $author = $userID; $config = HTMLPurifier_Config::createDefault(); $purifier = new HTMLPurifier($config); $clean_html = $purifier->purify($userContent); $clean_html = mysqli_real_escape_string($link, $clean_html); $stmt = $link->prepare("INSERT INTO userContent (section, author, content) VALUES (?, ?, ?)"); $stmt->bind_param("iis", $section, $author, $clean_html); if ($stmt->execute() === TRUE) { } else { echo "Error: " . $sql . "<br>" . $link->error; } } ?>

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.01018.43
8.3.50.0090.00616.29
8.3.40.0040.01218.71
8.3.30.0100.00718.63
8.3.20.0040.00420.39
8.3.10.0040.00421.85
8.3.00.0070.00421.07
8.2.180.0090.00618.54
8.2.170.0040.01122.96
8.2.160.0100.00322.11
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0040.00422.39
8.2.120.0040.00426.35
8.2.110.0100.00021.12
8.2.100.0110.00017.85
8.2.90.0000.00818.16
8.2.80.0040.00418.05
8.2.70.0070.00317.63
8.2.60.0000.00817.80
8.2.50.0000.00818.10
8.2.40.0080.00022.31
8.2.30.0000.00719.34
8.2.20.0040.00418.19
8.2.10.0040.00418.09
8.2.00.0040.00418.14
8.1.280.0070.00725.92
8.1.270.0080.00023.97
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00322.62
8.1.230.0060.00622.68
8.1.220.0050.00317.76
8.1.210.0000.00818.80
8.1.200.0100.00017.35
8.1.190.0080.00017.35
8.1.180.0000.00918.10
8.1.170.0030.00518.47
8.1.160.0000.00819.04
8.1.150.0040.00420.67
8.1.140.0030.00619.51
8.1.130.0000.00718.88
8.1.120.0040.00417.32
8.1.110.0000.00817.32
8.1.100.0040.00417.33
8.1.90.0000.00717.31
8.1.80.0030.00617.46
8.1.70.0030.00317.41
8.1.60.0040.00417.51
8.1.50.0000.00817.53
8.1.40.0000.00917.46
8.1.30.0040.00417.51
8.1.20.0000.00717.67
8.1.10.0080.00017.59
8.1.00.0030.00617.38
8.0.300.0030.00620.17
8.0.290.0040.00416.75
8.0.280.0000.00718.46
8.0.270.0050.00317.41
8.0.260.0030.00316.95
8.0.250.0030.00317.13
8.0.240.0040.00416.94
8.0.230.0070.00017.04
8.0.220.0000.00816.91
8.0.210.0070.00017.06
8.0.200.0030.00317.18
8.0.190.0030.00617.11
8.0.180.0080.00016.95
8.0.170.0060.00317.10
8.0.160.0000.00717.07
8.0.150.0000.00716.99
8.0.140.0020.00516.96
8.0.130.0000.00713.43
8.0.120.0000.00816.96
8.0.110.0030.00617.02
8.0.100.0030.00517.02
8.0.90.0040.00417.11
8.0.80.0000.01517.02
8.0.70.0030.00516.83
8.0.60.0020.00517.06
8.0.50.0040.00417.04
8.0.30.0120.00717.28
8.0.20.0140.00917.40
8.0.10.0070.00016.89
8.0.00.0120.00616.79
7.4.330.0030.00315.55
7.4.320.0060.00016.45
7.4.300.0000.00716.54
7.4.290.0070.00016.62
7.4.280.0040.00416.43
7.4.270.0070.00016.64
7.4.260.0000.00716.55
7.4.250.0080.00016.48
7.4.240.0050.00316.59
7.4.230.0000.00816.71
7.4.220.0030.01516.66
7.4.210.0030.01216.71
7.4.200.0030.00416.53
7.4.160.0100.00716.64
7.4.150.0070.01117.40
7.4.140.0110.01017.86
7.4.130.0180.00316.48
7.4.120.0150.00916.57
7.4.110.0090.00916.56
7.4.100.0080.00916.48
7.4.90.0030.01316.53
7.4.80.0090.01119.39
7.4.70.0130.00916.42
7.4.60.0060.01216.57
7.4.50.0040.01116.40
7.4.40.0090.00916.44
7.4.30.0040.01516.42
7.4.10.0070.01015.19
7.4.00.0060.01214.99
7.3.330.0080.00013.14
7.3.320.0060.00013.02
7.3.310.0000.00716.34
7.3.300.0030.00316.27
7.3.290.0080.00916.29
7.3.280.0080.00916.30
7.3.270.0170.00017.40
7.3.260.0120.00616.35
7.3.250.0130.00516.35
7.3.240.0080.01016.29
7.3.230.0230.00016.30
7.3.210.0100.00716.34
7.3.200.0050.01116.38
7.3.190.0140.00316.56
7.3.180.0110.01116.37
7.3.170.0080.00816.37
7.3.160.0070.01016.38
7.3.130.0100.01014.91
7.3.120.0080.00914.76
7.3.110.0070.01314.90
7.3.100.0120.00314.88
7.3.90.0070.00814.63
7.3.80.0060.00714.91
7.3.70.0080.00814.52
7.3.60.0060.00714.76
7.3.50.0100.00614.71
7.3.40.0000.00914.56
7.3.30.0100.00414.84
7.3.20.0050.00816.35
7.3.10.0080.00716.52
7.3.00.0030.00816.54
7.2.330.0110.00716.39
7.2.320.0070.01016.44
7.2.310.0130.00616.66
7.2.300.0080.00916.59
7.2.290.0100.00716.43
7.2.260.0040.01115.13
7.2.250.0090.00715.00
7.2.240.0080.00915.01
7.2.230.0090.00615.18
7.2.220.0120.00515.13
7.2.210.0040.00915.08
7.2.200.0060.00814.86
7.2.190.0050.00915.12
7.2.180.0080.00515.06
7.2.170.0070.00714.94
7.2.160.0070.01015.04
7.2.150.0070.00717.04
7.2.140.0000.01817.04
7.2.130.0080.00616.76
7.2.120.0090.00416.89
7.2.110.0050.00816.86
7.2.100.0110.00516.89
7.2.90.0040.00917.05
7.2.80.0100.00717.02
7.2.70.0130.00216.83
7.2.60.0060.00616.94
7.2.50.0100.00217.03
7.2.40.0070.00716.86
7.2.30.0070.00916.86
7.2.20.0080.00816.95
7.2.10.0110.00316.96
7.2.00.0040.01117.81
7.1.330.0030.01115.69
7.1.320.0050.01015.77
7.1.310.0020.00915.57
7.1.300.0040.00715.39
7.1.290.0040.00715.75
7.1.280.0060.00815.68
7.1.270.0060.00615.69
7.1.260.0030.01115.56
7.1.250.0070.00715.79
7.1.240.0030.01215.51
7.1.230.0000.01115.67
7.1.220.0040.01115.85
7.1.210.0040.00815.73
7.1.200.0030.01115.68
7.1.190.0060.00915.74
7.1.180.0060.00315.47
7.1.170.0060.00615.52
7.1.160.0060.00915.68
7.1.150.0080.00415.71
7.1.140.0090.00615.67
7.1.130.0090.00615.68
7.1.120.0040.01115.38
7.1.110.0030.00715.71
7.1.100.0090.00416.78
7.1.90.0060.00615.79
7.1.80.0040.00715.60
7.1.70.0020.01016.33
7.1.60.0280.01124.52
7.1.50.0340.01024.35
7.1.40.0240.01224.19
7.1.30.0230.01324.16
7.1.20.0230.01224.07
7.1.10.0170.01415.18
7.1.00.0250.00815.22
7.0.330.0000.01115.31
7.0.320.0030.01015.27
7.0.310.0000.01015.16
7.0.300.0060.00615.30
7.0.290.0070.00715.41
7.0.280.0040.01115.30
7.0.270.0030.01315.22
7.0.260.0090.00615.34
7.0.250.0080.00615.15
7.0.240.0070.00715.52
7.0.230.0030.01015.21
7.0.220.0070.01015.39
7.0.210.0030.01015.48
7.0.200.0320.00815.10
7.0.190.0230.01314.91
7.0.180.0250.00714.70
7.0.170.0220.00914.89
7.0.160.0220.01314.88
7.0.150.0200.01014.70
7.0.140.0260.00614.89
7.0.130.0170.00615.03
7.0.120.0190.00714.79
7.0.110.0200.00514.94
7.0.100.0130.01214.95
7.0.90.0150.00814.94
7.0.80.0150.00914.78
7.0.70.0270.00814.89
7.0.60.0130.01014.72
7.0.50.0120.01214.87
7.0.40.0180.00814.10
7.0.30.0150.01014.01
7.0.20.0170.00714.07
7.0.10.0130.01213.95
7.0.00.0250.01414.09
5.6.400.0000.01314.42
5.6.390.0060.00614.40
5.6.380.0090.00914.25
5.6.370.0070.01014.36
5.6.360.0030.00914.46
5.6.350.0030.01014.25
5.6.340.0070.01113.82
5.6.330.0030.01014.27
5.6.320.0030.01214.50
5.6.310.0090.00614.39
5.6.300.0030.01414.07
5.6.290.0030.01014.41
5.6.280.0030.01014.27
5.6.270.0100.00714.55
5.6.260.0100.00314.23
5.6.250.0000.01614.22
5.6.240.0060.00914.31
5.6.230.0070.00714.39
5.6.220.0090.00314.14
5.6.210.0000.01214.45
5.6.200.0040.01114.30
5.6.190.0030.00714.55
5.6.180.0060.00914.30
5.6.170.0000.01214.19
5.6.160.0070.00414.20
5.6.150.0090.00614.19
5.6.140.0040.01414.28
5.6.130.0060.00614.13
5.6.120.0070.00314.44
5.6.110.0100.00314.12
5.6.100.0000.01214.39
5.6.90.0080.00614.41
5.6.80.0110.00414.41
5.6.70.0090.00014.02
5.6.60.0100.00313.93
5.6.50.0000.01514.51
5.6.40.0000.00914.42
5.6.30.0070.00313.94
5.6.20.0040.00714.04
5.6.10.0060.00914.45
5.6.00.0000.00914.20

preferences:
36.84 ms | 401 KiB | 5 Q