3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "&lt; this is a test ยป"; $str = htmlentities($str); echo htmlspecialchars_decode($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.0070.00718.57
8.3.30.0060.00918.96
8.3.20.0080.00020.20
8.3.10.0080.00023.48
8.3.00.0060.00319.20
8.2.170.0040.01122.96
8.2.160.0100.00320.48
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0030.00520.79
8.2.110.0100.01020.93
8.2.100.0040.00817.84
8.2.90.0030.00517.97
8.2.80.0090.00017.97
8.2.70.0050.00317.50
8.2.60.0070.00418.03
8.2.50.0030.00518.07
8.2.40.0030.00621.20
8.2.30.0000.00718.28
8.2.20.0030.00517.64
8.2.10.0040.00418.05
8.2.00.0070.00017.55
8.1.270.0090.00023.97
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00422.56
8.1.230.0080.00320.92
8.1.220.0040.00417.79
8.1.210.0050.00318.77
8.1.200.0000.01417.35
8.1.190.0080.00017.23
8.1.180.0030.00618.10
8.1.170.0040.00418.52
8.1.160.0030.00521.96
8.1.150.0040.00418.62
8.1.140.0030.00717.34
8.1.130.0000.00717.70
8.1.120.0050.00317.39
8.1.110.0030.00317.44
8.1.100.0030.00317.39
8.1.90.0030.00617.29
8.1.80.0000.00717.29
8.1.70.0040.00417.33
8.1.60.0060.00317.50
8.1.50.0000.00817.34
8.1.40.0050.00317.35
8.1.30.0000.00817.64
8.1.20.0000.00817.52
8.1.10.0040.00417.57
8.1.00.0040.00417.52
8.0.300.0050.00219.95
8.0.290.0000.00816.63
8.0.280.0030.00318.36
8.0.270.0070.00017.17
8.0.260.0030.00317.30
8.0.250.0000.00617.02
8.0.240.0030.00316.98
8.0.230.0030.00616.90
8.0.220.0030.00516.84
8.0.210.0000.00716.71
8.0.200.0070.00016.75
8.0.190.0030.00616.89
8.0.180.0000.00716.84
8.0.170.0040.00416.77
8.0.160.0030.00316.67
8.0.150.0070.00016.73
8.0.140.0000.00716.78
8.0.130.0050.00013.34
8.0.120.0040.00416.79
8.0.110.0080.00016.70
8.0.100.0000.00916.78
8.0.90.0000.00716.93
8.0.80.0100.00716.78
8.0.70.0040.00416.76
8.0.60.0070.00016.86
8.0.50.0040.00416.88
8.0.30.0110.00817.09
8.0.20.0090.00917.40
8.0.10.0030.00517.05
8.0.00.0030.01516.61
7.4.330.0020.00215.09
7.4.320.0030.00316.43
7.4.300.0030.00316.51
7.4.290.0040.00816.59
7.4.280.0070.00016.36
7.4.270.0070.00016.55
7.4.260.0040.00416.43
7.4.250.0040.00416.51
7.4.240.0000.00716.40
7.4.230.0030.00316.56
7.4.220.0160.00916.47
7.4.210.0070.00716.36
7.4.200.0070.00016.61
7.4.190.0000.00716.25
7.4.160.0030.01216.41
7.4.150.0140.00817.40
7.4.140.0150.00717.86
7.4.130.0100.00616.29
7.4.120.0070.01016.44
7.4.110.0070.01016.56
7.4.100.0030.01316.57
7.4.90.0030.01316.47
7.4.80.0130.00319.39
7.4.70.0140.00616.49
7.4.60.0120.00416.52
7.4.50.0000.00816.45
7.4.40.0150.00316.53
7.4.30.0050.01116.55
7.4.00.0050.00514.62
7.3.330.0000.00613.03
7.3.320.0000.00612.93
7.3.310.0030.00316.13
7.3.300.0030.00316.00
7.3.290.0110.00316.16
7.3.280.0100.00916.23
7.3.270.0120.00617.40
7.3.260.0060.01216.48
7.3.250.0080.01116.15
7.3.240.0160.00716.47
7.3.230.0000.01616.39
7.3.210.0080.00916.30
7.3.200.0100.00619.39
7.3.190.0090.01216.25
7.3.180.0100.00616.14
7.3.170.0060.00916.27
7.3.160.0060.01616.21
7.3.120.0070.01014.79
7.2.330.0120.00616.34
7.2.320.0070.01016.61
7.2.310.0130.00316.53
7.2.300.0070.01016.37
7.2.290.0140.00816.67
7.2.00.0060.00619.52
7.1.100.0000.00917.65
7.1.70.0000.00917.09
7.1.60.0120.01219.70
7.1.50.0130.00334.75
7.1.00.0030.07722.54
7.0.200.0090.00016.72
7.0.140.0070.06722.04
7.0.60.0070.08719.81
7.0.50.0100.08317.89
7.0.40.0070.06320.02
7.0.30.0230.05720.04
7.0.20.0300.06320.02
7.0.10.0000.04320.00
7.0.00.0130.06020.01
5.6.210.0030.04020.47
5.6.200.0030.04018.18
5.6.190.0030.05320.77
5.6.180.4830.05020.61
5.6.170.0130.04320.71
5.6.160.0070.04720.40
5.6.150.0130.04718.16
5.6.140.0100.07718.21
5.6.130.0070.08018.09
5.6.120.0070.08721.01
5.6.110.0070.08321.13
5.6.100.0100.07721.12
5.6.90.0130.07721.00
5.6.80.0030.03720.40
5.6.70.3230.03320.50
5.5.350.0070.07720.39
5.5.340.0100.06317.98
5.5.330.0000.05020.12
5.5.320.3600.04720.35
5.5.310.0300.03320.30
5.5.300.0070.03717.96
5.5.290.0100.07717.95
5.5.280.0070.07720.80
5.5.270.0130.06320.67
5.5.260.0070.04020.96
5.5.250.0070.04020.79
5.5.240.0270.05720.36
5.4.450.1070.04319.41
5.4.440.1130.04019.40
5.4.430.0270.04344.50
5.4.420.0230.04342.28
5.4.410.0300.05039.98
5.4.400.0270.05037.90
5.4.390.0330.04335.90
5.4.380.0130.05318.75
5.4.370.0130.07318.73
5.4.360.0030.06318.68
5.4.350.0170.05318.59
5.4.340.0130.05318.55
5.4.320.0050.03812.45
5.4.310.0010.04312.45
5.4.300.0070.05112.46
5.4.290.0080.04212.45
5.4.280.0110.04512.35
5.4.270.0090.04312.34
5.4.260.0050.04612.35
5.4.250.0160.03512.34
5.4.240.0060.04412.35
5.4.230.0090.04312.34
5.4.220.0080.04912.34
5.4.210.0090.04512.34
5.4.200.0110.03912.34
5.4.190.0130.04112.33
5.4.180.0090.04312.34
5.4.170.0060.04412.35
5.4.160.0050.04512.34
5.4.150.0090.04012.34
5.4.140.0080.04312.02
5.4.130.0060.04212.01
5.4.120.0080.04311.96
5.4.110.0060.04311.97
5.4.100.0090.04411.96
5.4.90.0090.04311.97
5.4.80.0100.04011.96
5.4.70.0040.04111.96
5.4.60.0090.03811.96
5.4.50.0090.04211.96
5.4.40.0100.03511.95
5.4.30.0070.04311.94
5.4.20.0060.03711.95
5.4.10.0070.04711.94
5.4.00.0090.04911.43
5.3.290.0070.03912.80
5.3.280.0100.05012.71
5.3.270.0080.05812.72
5.3.260.0090.04512.72
5.3.250.0060.04912.72
5.3.240.0080.04912.72
5.3.230.0070.03812.71
5.3.220.0060.04112.68
5.3.210.0050.04712.68
5.3.200.0060.04412.68
5.3.190.0090.04112.68
5.3.180.0040.04912.68
5.3.170.0070.04912.67
5.3.160.0060.05112.67
5.3.150.0070.05512.68
5.3.140.0100.04912.66
5.3.130.0120.05412.66
5.3.120.0080.05712.65
5.3.110.0120.05212.66
5.3.100.0070.05212.12
5.3.90.0080.05412.09
5.3.80.0100.04812.07
5.3.70.0100.04712.07
5.3.60.0080.04812.06
5.3.50.0080.05012.00
5.3.40.0090.04912.00
5.3.30.0070.05211.95
5.3.20.0070.05011.73
5.3.10.0080.05011.70
5.3.00.0060.05111.70
5.2.170.0050.0399.19
5.2.160.0050.0399.19
5.2.150.0070.0399.19
5.2.140.0090.0389.19
5.2.130.0100.0349.14
5.2.120.0080.0359.15
5.2.110.0080.0359.15
5.2.100.0080.0349.15
5.2.90.0040.0419.14
5.2.80.0090.0369.14
5.2.70.0080.0389.14
5.2.60.0070.0409.09
5.2.50.0070.0399.07
5.2.40.0060.0349.04
5.2.30.0130.0309.02
5.2.20.0050.0439.00
5.2.10.0080.0348.93
5.2.00.0130.0498.79
5.1.60.0070.0378.08
5.1.50.0030.0408.07
5.1.40.0050.0398.05
5.1.30.0090.0388.40
5.1.20.0070.0408.42
5.1.10.0080.0278.15
5.1.00.0040.0308.15
5.0.50.0030.0226.62
5.0.40.0060.0206.48
5.0.30.0060.0346.30
5.0.20.0040.0236.27
5.0.10.0060.0226.24
5.0.00.0050.0346.23
4.4.90.0050.0184.78
4.4.80.0030.0164.75
4.4.70.0050.0174.75
4.4.60.0030.0194.75
4.4.50.0020.0214.77
4.4.40.0030.0264.71
4.4.30.0050.0194.76
4.4.20.0050.0204.85
4.4.10.0040.0164.85
4.4.00.0040.0274.76
4.3.110.0040.0154.67
4.3.100.0040.0144.66
4.3.90.0050.0184.64
4.3.80.0040.0244.59
4.3.70.0050.0134.63
4.3.60.0040.0154.63
4.3.50.0020.0184.62
4.3.40.0020.0274.54
4.3.30.0030.0163.28
4.3.20.0000.0193.25
4.3.10.0020.0193.22
4.3.00.0030.02034.39

preferences:
40.74 ms | 400 KiB | 5 Q