3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "<p>like it &lt;/p>"; $str = htmlspecialchars($str); echo $str; $str = htmlspecialchars_decode($str); echo $str; ?>

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.40.0110.00318.44
8.3.30.0100.00718.79
8.3.20.0070.00020.20
8.3.10.0050.00321.97
8.3.00.0040.00422.50
8.2.170.0100.01022.96
8.2.160.0110.00320.29
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0100.00326.16
8.2.120.0030.00617.50
8.2.110.0000.00922.13
8.2.100.0070.00417.72
8.2.90.0000.00819.17
8.2.80.0030.00619.66
8.2.70.0030.00617.50
8.2.60.0040.00417.92
8.2.50.0050.00318.07
8.2.40.0030.00518.22
8.2.30.0000.00718.11
8.2.20.0040.00417.55
8.2.10.0060.00317.71
8.2.00.0040.00417.79
8.1.270.0040.00422.04
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0070.01423.93
8.1.230.0080.00319.00
8.1.220.0040.00417.79
8.1.210.0030.00518.77
8.1.200.0060.00317.23
8.1.190.0040.00417.50
8.1.180.0000.00818.10
8.1.170.0080.00018.54
8.1.160.0000.00721.94
8.1.150.0050.00318.44
8.1.140.0050.00217.44
8.1.130.0000.00717.88
8.1.120.0040.00417.45
8.1.110.0000.00717.40
8.1.100.0030.00317.20
8.1.90.0080.00017.39
8.1.80.0040.00417.38
8.1.70.0030.00317.29
8.1.60.0030.00517.39
8.1.50.0080.00017.41
8.1.40.0000.00717.39
8.1.30.0030.00517.54
8.1.20.0040.00417.61
8.1.10.0000.00717.57
8.1.00.0040.00417.30
8.0.300.0030.00518.77
8.0.290.0040.00417.05
8.0.280.0050.00318.36
8.0.270.0070.00017.24
8.0.260.0030.00316.86
8.0.250.0000.00716.97
8.0.240.0070.00016.84
8.0.230.0030.00316.77
8.0.220.0070.00016.85
8.0.210.0070.00016.71
8.0.200.0060.00316.78
8.0.190.0030.00616.77
8.0.180.0060.00316.75
8.0.170.0040.00416.80
8.0.160.0050.00316.68
8.0.150.0000.00716.83
8.0.140.0050.00316.62
8.0.130.0050.00013.20
8.0.120.0040.00416.77
8.0.110.0030.00516.71
8.0.100.0030.00516.81
8.0.90.0000.00716.70
8.0.80.0060.00916.77
8.0.70.0000.00716.82
8.0.60.0000.00816.67
8.0.50.0000.00716.77
8.0.30.0080.01117.00
8.0.20.0110.00817.40
8.0.10.0000.00716.93
8.0.00.0080.01016.63
7.4.330.0020.00215.00
7.4.320.0050.00216.43
7.4.300.0000.00616.44
7.4.290.0000.00816.38
7.4.280.0000.00816.52
7.4.270.0030.00316.29
7.4.260.0000.00716.40
7.4.250.0000.00716.34
7.4.240.0020.00516.44
7.4.230.0070.00016.43
7.4.220.0060.01016.64
7.4.210.0060.01016.46
7.4.200.0000.00716.55
7.4.190.0000.00716.52
7.4.160.0000.01616.36
7.4.150.0110.00617.40
7.4.140.0110.01117.86
7.4.130.0070.01116.38
7.4.120.0140.00316.37
7.4.110.0100.00716.49
7.4.100.0090.00916.59
7.4.90.0040.01416.33
7.4.80.0110.01219.39
7.4.70.0060.01216.41
7.4.60.0130.00716.56
7.4.50.0000.00616.41
7.4.40.0060.00622.77
7.4.30.0060.00916.34
7.4.00.0100.00414.75
7.3.330.0030.00313.03
7.3.320.0030.00313.03
7.3.310.0000.00616.29
7.3.300.0000.00616.10
7.3.290.0070.00716.18
7.3.280.0070.00916.14
7.3.270.0170.00017.40
7.3.260.0140.00316.64
7.3.250.0070.00916.32
7.3.240.0130.00316.20
7.3.230.0060.00916.39
7.3.210.0030.01316.48
7.3.200.0040.01419.39
7.3.190.0090.00916.32
7.3.180.0030.01216.30
7.3.170.0030.01316.32
7.3.160.0040.01116.29
7.3.120.0100.00714.97
7.3.110.0090.00614.78
7.3.100.0090.00014.93
7.3.90.0060.00914.55
7.3.80.0060.00914.56
7.3.70.0040.01114.58
7.3.60.0060.00914.76
7.3.50.0100.00314.66
7.3.40.0090.00614.47
7.3.30.0070.00714.75
7.3.20.0070.01016.71
7.3.10.0060.01016.52
7.3.00.0060.00916.52
7.2.330.0100.00716.54
7.2.320.0070.01716.44
7.2.310.0030.01216.42
7.2.300.0100.00716.71
7.2.290.0100.00616.76
7.2.250.0070.01114.85
7.2.240.0100.00715.00
7.2.230.0030.01714.85
7.2.220.0000.01314.65
7.2.210.0070.00714.68
7.2.200.0040.01415.03
7.2.190.0030.01215.08
7.2.180.0030.01014.67
7.2.170.0070.01014.78
7.2.130.0070.00716.92
7.2.120.0120.00317.04
7.2.110.0050.00516.95
7.2.100.0040.01216.53
7.2.90.0060.00616.83
7.2.80.0100.00616.98
7.2.70.0000.01016.57
7.2.60.0040.00816.55
7.2.50.0070.00716.84
7.2.40.0030.00516.96
7.2.30.0030.01316.54
7.2.20.0000.01016.95
7.2.10.0070.00316.66
7.2.00.0040.00917.99
7.1.330.0130.00015.55
7.1.320.0000.01215.84
7.1.310.0030.00915.91
7.1.300.0070.00715.64
7.1.290.0030.01015.89
7.1.280.0040.01115.52
7.1.270.0030.01015.52
7.1.260.0140.00015.86
7.1.250.0030.00715.77
7.1.200.0060.00615.63
7.1.100.0030.00818.38
7.1.70.0090.00016.87
7.1.60.0070.01119.82
7.1.50.0100.01016.99
7.1.00.0030.07722.36
7.0.200.0060.00916.70
7.0.140.0000.08022.09
7.0.60.0130.06719.91
7.0.50.0100.04717.80
7.0.40.0100.08320.04
7.0.30.0330.05320.02
7.0.20.0170.05020.33
7.0.10.0400.08020.24
7.0.00.0100.07719.99
5.6.280.0000.07721.12
5.6.210.0030.04020.59
5.6.200.0130.08018.08
5.6.190.0100.04720.32
5.6.180.0370.08020.38
5.6.170.0330.06020.50
5.6.160.0100.04720.44
5.6.150.0030.08718.07
5.6.140.0130.05718.09
5.6.130.0030.05018.15
5.6.120.0070.05021.08
5.6.110.0070.05021.00
5.6.100.0070.08321.10
5.6.90.0100.07721.07
5.6.80.0100.08020.39
5.6.70.3400.04020.49
5.5.350.0330.07020.29
5.5.340.0000.04017.88
5.5.330.0030.04720.37
5.5.320.0230.06320.58
5.5.310.0230.08720.17
5.5.300.0030.07717.92
5.5.290.0030.08717.92
5.5.280.0070.05720.76
5.5.270.0070.07320.65
5.5.260.0000.08720.86
5.5.250.0070.06720.70
5.5.240.0030.06720.25
5.4.450.0830.05319.63
5.4.440.0100.06319.46
5.4.430.0170.05319.25
5.4.420.0070.05719.46
5.4.410.0130.05718.90
5.4.400.1300.05718.52
5.4.390.0830.06018.77
5.4.380.0200.05718.44
5.4.370.0100.04018.67
5.4.360.0100.04018.57
5.4.350.0100.03111.97
5.4.340.0060.04411.96
5.4.320.0080.04112.45
5.4.310.0070.04312.45
5.4.300.0080.04212.45
5.4.290.0080.04012.45
5.4.280.0060.03712.35
5.4.270.0070.05718.93
5.4.260.0130.04718.88
5.4.250.0100.06018.88
5.4.240.0200.05318.88
5.4.230.0100.05318.87
5.4.220.0000.07318.77
5.4.210.0130.04718.83
5.4.200.0100.07319.02
5.4.190.0200.06318.86
5.4.180.0070.05718.99
5.4.170.0170.05018.99
5.4.160.0170.05018.87
5.4.150.0230.04318.82
5.4.140.0200.05316.50
5.4.130.0100.04316.29
5.4.120.0070.07016.38
5.4.110.0130.06016.34
5.4.100.0170.04016.26
5.4.90.0030.06016.26
5.4.80.0100.05016.34
5.4.70.0100.05716.41
5.4.60.0170.04716.46
5.4.50.0030.05716.47
5.4.40.0170.05316.38
5.4.30.0070.07316.38
5.4.20.0170.04716.42
5.4.10.0170.04716.43
5.4.00.0100.05315.63
5.3.290.0110.03912.80
5.3.280.0100.06014.75
5.3.270.0100.05714.37
5.3.260.0200.06714.61
5.3.250.0130.05014.47
5.3.240.0100.06314.61
5.3.230.0130.06314.66
5.3.220.0070.05314.40
5.3.210.0170.04314.57
5.3.200.0030.06014.57
5.3.190.0030.06714.61
5.3.180.0130.04714.57
5.3.170.0170.05314.58
5.3.160.0200.06314.55
5.3.150.0100.05314.39
5.3.140.0100.05314.25
5.3.130.0230.07014.24
5.3.120.0030.08314.56
5.3.110.0100.06714.24
5.3.100.0100.07014.04
5.3.90.0200.05714.00
5.3.80.0100.06314.16
5.3.70.0130.07014.01
5.3.60.0230.05013.97
5.3.50.0070.05713.96
5.3.40.0130.07013.96
5.3.30.0130.04313.91
5.3.20.0070.06713.61
5.3.10.0070.05313.69
5.3.00.0070.05713.33
5.2.170.0130.04311.16
5.2.160.0100.05311.29
5.2.150.0030.04710.90
5.2.140.0100.04011.18
5.2.130.0100.05011.11
5.2.120.0030.04310.95
5.2.110.0100.03311.11
5.2.100.0170.05011.05
5.2.90.0030.05011.00
5.2.80.0100.03711.19
5.2.70.0100.05711.14
5.2.60.0070.04310.88
5.2.50.0170.05010.92
5.2.40.0100.04710.91
5.2.30.0000.05710.98
5.2.20.0070.05711.04
5.2.10.0070.04310.95
5.2.00.0030.04010.79
5.1.60.0070.0379.88
5.1.50.0030.0509.90
5.1.40.0070.04010.21
5.1.30.0070.05010.48
5.1.20.0100.03310.40
5.1.10.0170.04010.15
5.1.00.0100.0379.91
5.0.50.0070.0408.31
5.0.40.0100.0238.36
5.0.30.0100.0538.31
5.0.20.0030.0338.19
5.0.10.0070.0378.41
5.0.00.0030.0438.24
4.4.90.0130.0136.32
4.4.80.0070.0176.32
4.4.70.0000.0236.32
4.4.60.0000.0306.32
4.4.50.0030.0276.32
4.4.40.0000.0436.32
4.4.30.0000.0306.32
4.4.20.0030.0236.32
4.4.10.0070.0236.32
4.4.00.0030.0336.32
4.3.110.0100.0136.32
4.3.100.0030.0206.32
4.3.90.0030.0206.32
4.3.80.0030.0376.32
4.3.70.0070.0306.31
4.3.60.0030.0276.31
4.3.50.0070.0276.31
4.3.40.0100.0336.31
4.3.30.0030.0206.31
4.3.20.0000.0236.31
4.3.10.0030.0206.31
4.3.00.0000.0236.92

preferences:
33.82 ms | 400 KiB | 5 Q