3v4l.org

run code in 300+ PHP versions simultaneously
<?php $encoded = htmlentities("Hey I am a nefarious hacker! Look at my brackets! <script>HAHAHA</script>!"); $decoded = html_entity_decode($encoded); echo "This is the text you want to send in your html source outputted from php. \n"; echo $encoded; echo "\n\nThis is what it will look like on screen to the user.\n"; echo $decoded; ?>

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.0100.01018.43
8.3.50.0070.00718.04
8.3.40.0040.01118.61
8.3.30.0150.00019.06
8.3.20.0060.00320.33
8.3.10.0030.00523.66
8.3.00.0040.00420.84
8.2.180.0150.00016.50
8.2.170.0050.01022.96
8.2.160.0140.00420.35
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0110.00726.16
8.2.120.0000.00820.73
8.2.110.0060.00322.14
8.2.100.0040.00817.59
8.2.90.0030.00519.11
8.2.80.0060.00317.97
8.2.70.0050.00617.50
8.2.60.0040.00417.91
8.2.50.0070.00318.07
8.2.40.0030.00519.84
8.2.30.0050.00218.15
8.2.20.0000.00817.57
8.2.10.0040.00417.97
8.2.00.0040.00417.73
8.1.270.0080.00022.14
8.1.260.0000.00726.35
8.1.250.0050.00328.09
8.1.240.0060.00323.88
8.1.230.0090.00318.76
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00617.13
8.1.190.0030.00617.22
8.1.180.0030.00518.10
8.1.170.0030.00518.65
8.1.160.0000.00721.98
8.1.150.0070.00018.55
8.1.140.0030.00317.38
8.1.130.0030.00617.70
8.1.120.0000.00717.41
8.1.110.0040.00417.30
8.1.100.0040.00317.38
8.1.90.0000.00817.41
8.1.80.0000.00817.42
8.1.70.0000.00717.40
8.1.60.0040.00417.40
8.1.50.0040.00417.35
8.1.40.0030.00517.51
8.1.30.0040.00417.48
8.1.20.0000.00717.49
8.1.10.0040.00417.41
8.1.00.0000.00817.52
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0000.00718.36
8.0.270.0000.00717.27
8.0.260.0000.00617.27
8.0.250.0000.00716.99
8.0.240.0030.00316.95
8.0.230.0030.00316.75
8.0.220.0070.00016.86
8.0.210.0030.00316.77
8.0.200.0030.00316.80
8.0.190.0040.00416.77
8.0.180.0070.00016.76
8.0.170.0000.00816.75
8.0.160.0000.00716.71
8.0.150.0070.00016.84
8.0.140.0070.00016.70
8.0.130.0030.00313.25
8.0.120.0040.00416.80
8.0.110.0070.00016.66
8.0.100.0030.00316.72
8.0.90.0080.00016.73
8.0.80.0070.01016.81
8.0.70.0040.00416.79
8.0.60.0000.00716.77
8.0.50.0000.00716.85
8.0.30.0100.01016.98
8.0.20.0080.01117.40
8.0.10.0040.00417.01
8.0.00.0090.01116.84
7.4.330.0000.00515.14
7.4.320.0000.00716.52
7.4.300.0030.00316.44
7.4.290.0000.00816.45
7.4.280.0000.00716.55
7.4.270.0030.00316.39
7.4.260.0070.00016.35
7.4.250.0040.00416.51
7.4.240.0030.00416.46
7.4.230.0000.00616.51
7.4.220.0040.01516.49
7.4.210.0070.00716.65
7.4.200.0000.00716.57
7.4.160.0140.00616.38
7.4.150.0160.01017.40
7.4.140.0090.00817.86
7.4.130.0100.00716.51
7.4.120.0100.01016.44
7.4.110.0180.00416.47
7.4.100.0070.01116.55
7.4.90.0130.00716.26
7.4.80.0140.01219.39
7.4.70.0100.00716.57
7.4.60.0150.00316.43
7.4.50.0030.00616.54
7.4.40.0100.00616.57
7.4.30.0070.01016.62
7.4.00.0130.00315.04
7.3.330.0000.00713.13
7.3.320.0050.00013.04
7.3.310.0030.00316.20
7.3.300.0060.00016.23
7.3.290.0070.00716.31
7.3.280.0100.01016.21
7.3.270.0040.01417.40
7.3.260.0100.01316.50
7.3.250.0110.00616.45
7.3.240.0160.00316.29
7.3.230.0100.00716.39
7.3.210.0100.01316.09
7.3.200.0120.00919.39
7.3.190.0090.01216.32
7.3.180.0040.01216.50
7.3.170.0110.00416.27
7.3.160.0090.00616.15
7.3.120.0030.01214.58
7.2.330.0120.00616.39
7.2.320.0130.01016.39
7.2.310.0070.01016.46
7.2.300.0040.01816.53
7.2.290.0090.00916.44
7.2.60.0100.00316.86
7.2.00.0060.00619.28
7.1.200.0000.00815.61
7.1.100.0000.01018.03
7.1.70.0060.00317.23
7.1.60.0070.01719.70
7.1.50.0160.00417.05
7.1.00.0030.07722.33
7.0.200.0030.00516.83
7.0.140.0000.07722.08
7.0.60.0030.08020.00
7.0.50.0030.09017.80
7.0.40.0070.04720.27
7.0.30.0230.04019.98
7.0.20.0300.05320.18
7.0.10.0270.07020.19
7.0.00.0100.05320.17
5.6.280.0100.06721.10
5.6.210.0100.07020.64
5.6.200.0070.04318.22
5.6.190.0100.08020.41
5.6.180.0270.07320.67
5.6.170.0200.04020.63
5.6.160.0130.05020.40
5.6.150.0100.06718.11
5.6.140.0030.03718.21
5.6.130.0070.07318.14
5.6.120.0130.07720.98
5.6.110.0100.07020.96
5.6.100.0130.08021.00
5.6.90.0230.04720.97
5.6.80.0030.04020.40
5.6.70.2700.03320.51
5.5.350.0000.03720.42
5.5.340.0130.04318.02
5.5.330.0070.07020.36
5.5.320.0130.05020.28
5.5.310.0300.06020.33
5.5.300.0030.04318.01
5.5.290.0000.04317.92
5.5.280.0000.09020.89
5.5.270.0030.04720.78
5.5.260.0070.07720.84
5.5.250.0070.07020.54
5.5.240.0070.08020.25
5.4.450.0100.05031.20
5.4.440.0300.04731.20
5.4.430.0170.04031.20
5.4.420.0700.05031.20
5.4.410.0230.03732.00
5.4.400.0100.04332.00
5.4.390.0170.04732.00
5.4.380.0100.05718.59
5.4.370.0300.04318.74
5.4.360.0170.04718.59
5.4.350.0030.06018.66
5.4.340.0230.04318.58
5.4.320.0070.04012.46
5.4.310.0070.04112.45
5.4.300.0090.03812.45
5.4.290.0090.04712.45
5.4.280.0070.05012.35
5.4.270.0140.04212.34
5.4.260.0080.05012.35
5.4.250.0080.05112.34
5.4.240.0080.04912.34
5.4.230.0100.04912.34
5.4.220.0100.04812.34
5.4.210.0100.04712.34
5.4.200.0050.05512.34
5.4.190.0090.04912.33
5.4.180.0050.04012.33
5.4.170.0040.04312.34
5.4.160.0040.04612.34
5.4.150.0110.04112.34
5.4.140.0060.04212.02
5.4.130.0060.03912.01
5.4.120.0040.04111.97
5.4.110.0070.04311.96
5.4.100.0080.03711.96
5.4.90.0070.03911.96
5.4.80.0050.03911.96
5.4.70.0070.03511.96
5.4.60.0080.03711.96
5.4.50.0100.03511.96
5.4.40.0070.03711.95
5.4.30.0060.04211.95
5.4.20.0100.03911.95
5.4.10.0080.04111.95
5.4.00.0080.04111.44
5.3.290.0070.03912.80
5.3.280.0040.04512.71
5.3.270.0090.04212.73
5.3.260.0050.04512.72
5.3.250.0080.04212.72
5.3.240.0090.05112.72
5.3.230.0140.04612.71
5.3.220.0070.05312.68
5.3.210.0080.05512.68
5.3.200.0140.04612.68
5.3.190.0110.04912.68
5.3.180.0100.04912.67
5.3.170.0140.04412.67
5.3.160.0060.04012.68
5.3.150.0050.04012.67
5.3.140.0050.03912.66
5.3.130.0090.03812.66
5.3.120.0070.04012.66
5.3.110.0050.04912.66
5.3.100.0090.04812.12
5.3.90.0070.03912.09
5.3.80.0090.03512.07
5.3.70.0030.04012.07
5.3.60.0100.03212.07
5.3.50.0100.03712.00
5.3.40.0080.04612.00
5.3.30.0060.03611.94
5.3.20.0060.03611.72
5.3.10.0050.03911.69
5.3.00.0120.03111.68
5.2.170.0030.0339.18
5.2.160.0100.0309.18
5.2.150.0050.0319.18
5.2.140.0080.0299.17
5.2.130.0040.0309.14
5.2.120.0040.0299.14
5.2.110.0050.0299.14
5.2.100.0080.0289.14
5.2.90.0110.0279.13
5.2.80.0070.0319.13
5.2.70.0030.0329.13
5.2.60.0030.0339.09
5.2.50.0070.0299.05
5.2.40.0050.0299.04
5.2.30.0060.0299.00
5.2.20.0120.0249.00
5.2.10.0080.0268.93
5.2.00.0070.0288.78
5.1.60.0090.0248.07
5.1.50.0060.0348.06
5.1.40.0050.0278.04
5.1.30.0060.0278.40
5.1.20.0020.0338.42
5.1.10.0030.0298.14
5.1.00.0050.0268.14
5.0.50.0000.0256.62
5.0.40.0040.0216.48
5.0.30.0070.0326.29
5.0.20.0050.0186.27
5.0.10.0030.0216.25
5.0.00.0050.0316.23
4.4.90.0020.0174.78
4.4.80.0030.0164.75
4.4.70.0040.0154.76
4.4.60.0020.0174.76
4.4.50.0040.0154.77
4.4.40.0030.0264.71
4.4.30.0030.0174.76
4.4.20.0010.0184.84
4.4.10.0030.0164.85
4.4.00.0040.0244.76
4.3.110.0040.0154.66
4.3.100.0030.0184.67
4.3.90.0040.0194.64
4.3.80.0060.0284.58
4.3.70.0050.0124.63
4.3.60.0040.0144.63
4.3.50.0060.0194.63
4.3.40.0040.0234.54
4.3.30.0030.0173.29
4.3.20.0010.0183.27
4.3.10.0030.0153.22
4.3.00.0000.02032.00

preferences:
54.87 ms | 400 KiB | 5 Q