3v4l.org

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

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.0070.00718.50
8.3.30.0070.00718.93
8.3.20.0040.00420.16
8.3.10.0080.00021.92
8.3.00.0040.00422.43
8.2.170.0110.00422.96
8.2.160.0100.00320.39
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0100.00326.16
8.2.120.0050.00317.63
8.2.110.0090.00022.16
8.2.100.0070.00417.84
8.2.90.0070.00019.22
8.2.80.0060.00319.66
8.2.70.0060.00317.63
8.2.60.0080.00017.92
8.2.50.0040.00418.07
8.2.40.0050.00318.28
8.2.30.0050.00218.04
8.2.20.0040.00417.57
8.2.10.0040.00417.78
8.2.00.0000.00817.60
8.1.270.0030.00522.06
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0050.00523.98
8.1.230.0070.00319.17
8.1.220.0000.00717.78
8.1.210.0100.00018.77
8.1.200.0060.00317.36
8.1.190.0050.00317.53
8.1.180.0040.00418.10
8.1.170.0000.00818.66
8.1.160.0000.00721.90
8.1.150.0000.00718.47
8.1.140.0030.00617.32
8.1.130.0000.00717.85
8.1.120.0070.00017.46
8.1.110.0040.00417.38
8.1.100.0040.00417.39
8.1.90.0040.00417.30
8.1.80.0000.00717.27
8.1.70.0030.00317.38
8.1.60.0040.00417.57
8.1.50.0040.00417.43
8.1.40.0030.00617.46
8.1.30.0000.00817.56
8.1.20.0030.00617.49
8.1.10.0040.00417.46
8.1.00.0080.00017.31
8.0.300.0040.00418.77
8.0.290.0060.00317.05
8.0.280.0030.00318.43
8.0.270.0030.00317.16
8.0.260.0030.00316.73
8.0.250.0030.00316.85
8.0.240.0000.00716.90
8.0.230.0000.00716.89
8.0.220.0000.00716.81
8.0.210.0070.00016.77
8.0.200.0000.00716.95
8.0.190.0040.00416.90
8.0.180.0110.00016.89
8.0.170.0000.00816.79
8.0.160.0050.00316.75
8.0.150.0000.00716.86
8.0.140.0000.00716.84
8.0.130.0050.00013.37
8.0.120.0040.00416.83
8.0.110.0000.00716.84
8.0.100.0000.00716.96
8.0.90.0030.00316.75
8.0.80.0110.01116.85
8.0.70.0070.00016.75
8.0.60.0040.00316.88
8.0.50.0000.00716.77
8.0.30.0080.01117.08
8.0.20.0070.01217.40
8.0.10.0000.00816.89
8.0.00.0160.00216.75
7.4.330.0050.00015.00
7.4.320.0000.00616.32
7.4.300.0030.00316.42
7.4.290.0030.00316.45
7.4.280.0030.00316.52
7.4.270.0070.00016.54
7.4.260.0000.00716.34
7.4.250.0080.00016.51
7.4.240.0020.00516.39
7.4.230.0080.00016.48
7.4.220.0100.00716.46
7.4.210.0060.00816.49
7.4.200.0000.00716.31
7.4.190.0030.00316.67
7.4.160.0060.00916.43
7.4.150.0120.00617.40
7.4.140.0110.01017.86
7.4.130.0050.01316.57
7.4.120.0090.00916.62
7.4.110.0100.00716.44
7.4.100.0070.01116.47
7.4.90.0100.00716.40
7.4.80.0130.00519.39
7.4.70.0130.00316.48
7.4.60.0140.00316.30
7.4.50.0030.00616.08
7.4.40.0120.00322.77
7.4.30.0100.00516.48
7.4.00.0080.00415.06
7.3.330.0070.00012.98
7.3.320.0030.00312.98
7.3.310.0040.00416.14
7.3.300.0060.00016.21
7.3.290.0070.01016.20
7.3.280.0100.00916.18
7.3.270.0090.00917.40
7.3.260.0070.01116.14
7.3.250.0090.00716.42
7.3.240.0100.00716.16
7.3.230.0090.00616.43
7.3.210.0080.00916.25
7.3.200.0100.00719.39
7.3.190.0090.00916.18
7.3.180.0090.00616.47
7.3.170.0040.01616.43
7.3.160.0100.00616.19
7.3.120.0130.00314.50
7.2.330.0030.01316.74
7.2.320.0030.01616.71
7.2.310.0030.01216.48
7.2.300.0140.00316.76
7.2.290.0090.00616.69
7.2.80.0070.00716.51
7.2.60.0030.01016.98
7.2.00.0040.00819.54
7.1.200.0000.01015.82
7.1.100.0030.01017.85
7.1.70.0040.00416.89
7.1.60.0100.00017.18
7.1.50.0140.02134.82
7.1.00.0100.07022.37
7.0.200.0000.00716.68
7.0.140.0030.07322.00
7.0.60.0000.04320.02
7.0.50.0000.04717.91
7.0.40.0000.04719.96
7.0.30.0230.04320.11
7.0.20.0200.05320.17
7.0.10.0100.08020.16
7.0.00.0100.05320.25
5.6.280.0000.07721.11
5.6.210.0030.07020.64
5.6.200.0070.07718.15
5.6.190.0000.05320.35
5.6.180.0400.06020.27
5.6.170.0270.04720.61
5.6.160.0070.05020.37
5.6.150.0070.04018.12
5.6.140.0070.08018.11
5.6.130.0100.04018.11
5.6.120.0070.08020.78
5.6.110.0130.07320.98
5.6.100.0130.08021.10
5.6.90.0130.06721.06
5.6.80.0000.04320.53
5.5.350.0130.08720.52
5.5.340.0000.04717.97
5.5.330.0170.07320.37
5.5.320.0230.05720.30
5.5.310.0300.05020.21
5.5.300.0100.08317.97
5.5.290.0170.06017.87
5.5.280.0170.07320.95
5.5.270.0070.04020.96
5.5.260.0170.06720.66
5.5.250.0170.03320.68
5.5.240.0130.05720.27
5.4.450.0570.04019.21
5.4.440.0870.03719.40
5.4.430.0830.03319.48
5.4.420.1230.03319.45
5.4.410.0530.03319.29
5.4.400.0900.03719.16
5.4.390.0200.04019.08
5.4.380.0230.05718.57
5.4.370.0230.05018.74
5.4.360.0230.05718.59
5.4.350.0400.04018.67
5.4.340.0230.06018.46
5.4.320.0040.03712.46
5.4.310.0070.04112.45
5.4.300.0050.04312.45
5.4.290.0010.04612.45
5.4.280.0090.04012.34
5.4.270.0030.08318.65
5.4.260.0100.07018.82
5.4.250.0070.08019.03
5.4.240.0130.04719.03
5.4.230.0070.05718.87
5.4.220.0030.08018.88
5.4.210.0170.04018.93
5.4.200.0130.05018.89
5.4.190.0130.05018.87
5.4.180.0030.05718.74
5.4.170.0100.05318.92
5.4.160.0030.07718.78
5.4.150.0100.08318.98
5.4.140.0130.04716.16
5.4.130.0130.05316.40
5.4.120.0030.06716.25
5.4.110.0100.07316.32
5.4.100.0070.05016.49
5.4.90.0070.06016.45
5.4.80.0200.04016.41
5.4.70.0170.05316.23
5.4.60.0070.07716.46
5.4.50.0030.05716.45
5.4.40.0170.06016.45
5.4.30.0130.05016.32
5.4.20.0130.05716.46
5.4.10.0070.06716.51
5.4.00.0070.05315.65
5.3.290.0030.04212.80
5.3.280.0030.06714.52
5.3.270.0100.07014.30
5.3.260.0000.06014.61
5.3.250.0100.05014.75
5.3.240.0070.05014.63
5.3.230.0070.05714.61
5.3.220.0130.05014.58
5.3.210.0070.07014.58
5.3.200.0070.05714.34
5.3.190.0030.05714.42
5.3.180.0100.05314.55
5.3.170.0070.05314.56
5.3.160.0100.07014.56
5.3.150.0100.05014.56
5.3.140.0130.06314.55
5.3.130.0230.04314.70
5.3.120.0170.06714.55
5.3.110.0100.05014.70
5.3.100.0130.06714.01
5.3.90.0130.04713.71
5.3.80.0100.05313.79
5.3.70.0230.05314.02
5.3.60.0000.07313.83
5.3.50.0100.06013.93
5.3.40.0170.05713.81
5.3.30.0070.04713.91
5.3.20.0170.04013.63
5.3.10.0070.05313.57
5.3.00.0270.03713.33
5.2.170.0170.03011.15
5.2.160.0030.05011.06
5.2.150.0100.03711.25
5.2.140.0100.04011.25
5.2.130.0100.05311.01
5.2.120.0070.05310.98
5.2.110.0100.05311.01
5.2.100.0070.04711.12
5.2.90.0100.05311.09
5.2.80.0100.04011.01
5.2.70.0100.05311.20
5.2.60.0070.04011.14
5.2.50.0100.04010.93
5.2.40.0130.05311.01
5.2.30.0070.04011.07
5.2.20.0070.04310.96
5.2.10.0200.03710.79
5.2.00.0270.03310.47
5.1.60.0030.0379.95
5.1.50.0070.03710.20
5.1.40.0030.04010.01
5.1.30.0070.04310.42
5.1.20.0030.05310.35
5.1.10.0030.0509.97
5.1.00.0070.04010.21
5.0.50.0030.0378.60
5.0.40.0000.0438.64
5.0.30.0000.0538.13
5.0.20.0030.0278.42
5.0.10.0000.0338.08
5.0.00.0030.0478.13
4.4.90.0000.0236.28
4.4.80.0030.0236.28
4.4.70.0030.0236.28
4.4.60.0030.0306.28
4.4.50.0070.0276.28
4.4.40.0070.0336.28
4.4.30.0000.0336.28
4.4.20.0030.0306.28
4.4.10.0070.0206.28
4.4.00.0030.0376.28
4.3.110.0030.0236.28
4.3.100.0030.0306.28
4.3.90.0070.0276.32
4.3.80.0030.0436.32
4.3.70.0030.0276.32
4.3.60.0070.0206.32
4.3.50.0000.0276.32
4.3.40.0100.0236.32
4.3.30.0030.0276.32
4.3.20.0070.0176.32
4.3.10.0000.0306.32
4.3.00.0100.02713.50

preferences:
42.78 ms | 400 KiB | 5 Q