3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "<>&'\""; echo htmlspecialchars($str, ENT_QUOTES), PHP_EOL; echo htmlspecialchars($str, ENT_QUOTES|ENT_HTML5);

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.90.0080.00026.77
8.3.80.0060.00316.50
8.3.70.0140.00316.58
8.3.60.0070.00716.24
8.3.50.0110.00518.07
8.3.40.0060.01218.55
8.3.30.0120.00318.54
8.3.20.0040.00421.63
8.3.10.0040.00423.53
8.3.00.0000.00722.05
8.2.210.0060.00326.77
8.2.200.0080.00416.63
8.2.190.0040.01816.58
8.2.180.0150.00016.45
8.2.170.0110.00318.90
8.2.160.0060.00622.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.96
8.2.110.0030.00622.13
8.2.100.0060.00617.77
8.2.90.0050.00317.91
8.2.80.0000.00717.97
8.2.70.0050.00317.93
8.2.60.0060.00317.63
8.2.50.0030.00618.10
8.2.40.0070.00020.30
8.2.30.0040.00420.62
8.2.20.0040.00417.91
8.2.10.0040.00417.98
8.2.00.0050.00318.02
8.1.290.0090.00018.88
8.1.280.0000.01425.92
8.1.270.0000.00822.09
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.16
8.1.230.0060.00620.97
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0040.00817.22
8.1.180.0040.00418.10
8.1.170.0000.00818.47
8.1.160.0000.00718.82
8.1.150.0040.00418.56
8.1.140.0040.00417.55
8.1.130.0060.00318.95
8.1.120.0030.00517.37
8.1.110.0050.00317.37
8.1.100.0040.00517.39
8.1.90.0070.00017.35
8.1.80.0040.00417.28
8.1.70.0000.00717.38
8.1.60.0050.00317.54
8.1.50.0080.00017.48
8.1.40.0050.00217.33
8.1.30.0080.00517.49
8.1.20.0040.00417.48
8.1.10.0040.00417.52
8.1.00.0030.00617.34
8.0.300.0040.00420.14
8.0.290.0040.00416.58
8.0.280.0000.00718.43
8.0.270.0030.00317.26
8.0.260.0000.00616.79
8.0.250.0000.00616.93
8.0.240.0070.00016.88
8.0.230.0050.00316.90
8.0.220.0050.00516.77
8.0.210.0020.00516.79
8.0.200.0070.00016.73
8.0.190.0070.00416.89
8.0.180.0030.00416.77
8.0.170.0060.00316.84
8.0.160.0000.00816.73
8.0.150.0040.00416.59
8.0.140.0080.00016.78
8.0.130.0050.00013.18
8.0.120.0000.00916.71
8.0.110.0070.00016.79
8.0.100.0000.00716.81
8.0.90.0030.00516.76
8.0.80.0090.00616.77
8.0.70.0040.00416.70
8.0.60.0050.00216.80
8.0.50.0040.00416.79
8.0.30.0100.00817.03
8.0.20.0090.01017.40
8.0.10.0070.00017.04
8.0.00.0100.00916.71
7.4.330.0000.00615.55
7.4.320.0000.00616.52
7.4.300.0070.00016.46
7.4.290.0070.00016.54
7.4.280.0000.00816.40
7.4.270.0000.00716.49
7.4.260.0030.00316.51
7.4.250.0030.00516.38
7.4.240.0040.00416.57
7.4.230.0000.00716.34
7.4.220.0040.00416.50
7.4.210.0130.00616.49
7.4.200.0000.00716.50
7.4.160.0080.00816.41
7.4.140.0120.00917.86
7.4.130.0120.00816.51
7.4.120.0100.01016.42
7.4.110.0090.00916.33
7.4.100.0080.01116.43
7.4.90.0140.00816.29
7.4.80.0090.01117.87
7.4.70.0060.01316.43
7.4.60.0120.00816.32
7.4.50.0030.01516.35
7.4.40.0150.00516.47
7.4.30.0160.00716.26
7.4.20.0030.02016.22
7.4.10.0150.00716.37
7.4.00.0060.01015.64
7.3.330.0000.00512.87
7.3.320.0000.00612.88
7.3.310.0000.00716.26
7.3.300.0000.00716.12
7.3.290.0100.00316.18
7.3.280.0050.01016.14
7.3.260.0120.00816.28
7.3.250.0160.00416.18
7.3.240.0090.01016.18
7.3.230.0080.01116.23
7.3.220.0070.01716.31
7.3.210.0110.00816.26
7.3.200.0130.00616.28
7.3.190.0050.01216.33
7.3.180.0080.01016.24
7.3.170.0150.00316.14
7.3.160.0150.00616.30
7.3.150.0140.00416.20
7.3.140.0090.00916.22
7.3.130.0100.00716.05
7.3.120.0110.00615.26
7.3.110.0120.00615.48
7.3.100.0110.00515.24
7.3.90.0080.00815.37
7.3.80.0060.00915.36
7.3.70.0120.00215.45
7.3.60.0080.00715.42
7.3.50.0080.00515.36
7.3.40.0090.00515.44
7.3.30.0100.00315.39
7.3.20.0080.00716.29
7.3.10.0060.01116.30
7.3.00.0060.00916.39
7.2.340.0220.01416.48
7.2.330.0130.01016.52
7.2.320.0170.00916.36
7.2.310.0160.00916.45
7.2.300.0140.00916.41
7.2.290.0180.00616.41
7.2.280.0160.01316.18
7.2.270.0180.00916.13
7.2.260.0190.00816.38
7.2.250.0190.00816.45
7.2.240.0110.01115.45
7.2.230.0100.01215.48
7.2.220.0070.01115.53
7.2.210.0130.00815.47
7.2.200.0090.00615.41
7.2.190.0070.01115.56
7.2.180.0100.00415.54
7.2.170.0090.01015.57
7.2.160.0100.00715.57
7.2.150.0100.00716.58
7.2.140.0180.00516.55
7.2.130.0030.01416.65
7.2.120.0060.00916.60
7.2.110.0080.00916.54
7.2.100.0170.00616.71
7.2.90.0120.00916.65
7.2.80.0110.00716.75
7.2.70.0100.00916.63
7.2.60.0110.00816.69
7.2.50.0180.00916.56
7.2.40.0090.01216.54
7.2.30.0090.01317.08
7.2.20.0090.01316.91
7.2.10.0180.01016.99
7.2.00.0110.01116.77
7.1.330.0140.00515.48
7.1.320.0090.00815.50
7.1.310.0050.01115.35
7.1.300.0070.00715.44
7.1.290.0060.01215.58
7.1.280.0090.00915.56
7.1.270.0080.00915.54
7.1.260.0100.00715.35
7.1.250.0060.00915.53
7.1.240.0120.00615.50
7.1.230.0270.00315.34
7.1.220.0230.01015.47
7.1.210.0250.00715.22
7.1.200.0120.00915.58
7.1.190.0180.01115.34
7.1.180.0230.00715.29
7.1.170.0240.00415.35
7.1.160.0220.01115.37
7.1.150.0200.00516.00
7.1.140.0120.01416.03
7.1.130.0200.01216.11
7.1.120.0240.00815.87
7.1.110.0190.01015.69
7.1.100.0200.00915.78
7.1.90.0230.01215.88
7.1.80.0350.01115.93
7.1.70.0210.00615.22
7.1.60.0300.01124.02
7.1.50.0280.01024.02
7.1.40.0280.01124.00
7.1.30.0320.01123.88
7.1.20.0230.01523.91
7.1.10.0150.01114.92
7.1.00.0180.00714.96
7.0.330.0160.00315.09
7.0.320.0200.00714.95
7.0.310.0170.00714.82
7.0.300.0180.01114.99
7.0.290.0230.00315.22
7.0.280.0140.00715.03
7.0.270.0230.01014.90
7.0.260.0180.00815.32
7.0.250.0450.01014.78
7.0.240.0180.01114.94
7.0.230.0200.01115.02
7.0.220.0230.00514.99
7.0.210.0150.01515.14
7.0.200.0160.01115.13
7.0.190.0200.01415.27
7.0.180.0170.01315.09
7.0.170.0160.00914.98
7.0.160.0240.00514.96
7.0.150.0180.01114.89
7.0.140.0190.00715.05
7.0.130.0230.00314.81
7.0.120.0400.00715.09
7.0.110.0090.01415.13
7.0.100.0060.01414.90
7.0.90.0120.00915.01
7.0.80.0140.01015.04
7.0.70.0120.00915.19
7.0.60.0090.01315.05
7.0.50.0060.01215.15
7.0.40.0090.00915.23
7.0.30.0070.01115.05
7.0.20.0120.00714.98
7.0.10.0130.00315.13
7.0.00.0080.00815.12
5.6.400.0120.00815.88
5.6.390.0130.00916.04
5.6.380.0200.00715.62
5.6.370.0280.00015.93
5.6.360.0180.00915.70
5.6.350.0160.00915.52
5.6.340.0170.01215.63
5.6.330.0110.01415.71
5.6.320.0150.00915.61
5.6.310.0210.01215.91
5.6.300.0230.01315.66
5.6.290.0170.01015.62
5.6.280.0140.01515.80
5.6.270.0140.01416.00
5.6.260.0130.01015.90
5.6.250.0070.02115.98
5.6.240.0240.00015.71
5.6.230.0110.01215.64
5.6.220.0120.01215.57
5.6.210.0130.01315.64
5.6.200.0100.01015.98
5.6.190.0130.00715.76
5.6.180.0160.00615.85
5.6.170.0060.01215.95
5.6.160.0130.00615.78
5.6.150.0110.01115.64
5.6.140.0100.01015.82
5.6.130.0060.01615.91
5.6.120.0110.01115.64
5.6.110.0120.00615.66
5.6.100.0120.00615.77
5.6.90.0060.01215.50
5.6.80.0100.01015.80
5.6.70.0070.01315.92
5.6.60.0150.00415.84
5.6.50.0080.01115.53
5.6.40.0090.01315.25
5.6.30.0150.00715.45
5.6.20.0110.01115.63
5.6.10.0070.01715.63
5.6.00.0120.00915.76

preferences:
33.23 ms | 401 KiB | 5 Q