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 "htmlentities makes the text from the comment box safe to put in HTML source code. \n"; echo $encoded; echo "\n\nLike the user's web browser will do automatically, html_entity_decode makes it look normal again.\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.05
8.3.50.0090.00721.98
8.3.40.0120.00318.57
8.3.30.0110.00418.96
8.3.20.0040.00420.22
8.3.10.0080.00023.65
8.3.00.0050.00320.80
8.2.180.0060.00916.38
8.2.170.0070.00722.96
8.2.160.0100.00320.52
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0190.00026.16
8.2.120.0040.00420.86
8.2.110.0080.00019.02
8.2.100.0060.00617.72
8.2.90.0000.00819.05
8.2.80.0000.00817.97
8.2.70.0060.00317.50
8.2.60.0030.00617.80
8.2.50.0050.00518.07
8.2.40.0060.00318.03
8.2.30.0050.00218.25
8.2.20.0040.00417.67
8.2.10.0000.00718.03
8.2.00.0030.00617.55
8.1.280.0150.00325.92
8.1.270.0060.00322.05
8.1.260.0050.00326.35
8.1.250.0100.00028.09
8.1.240.0090.00020.92
8.1.230.0090.00317.42
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0030.00617.23
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0040.00418.59
8.1.160.0050.00221.94
8.1.150.0050.00318.61
8.1.140.0040.00417.38
8.1.130.0000.00917.67
8.1.120.0030.00317.39
8.1.110.0050.00317.30
8.1.100.0000.00717.29
8.1.90.0000.00717.37
8.1.80.0000.00817.29
8.1.70.0070.00017.33
8.1.60.0030.00617.54
8.1.50.0040.00417.41
8.1.40.0000.00817.46
8.1.30.0060.00317.54
8.1.20.0000.00717.57
8.1.10.0040.00417.41
8.1.00.0080.00017.45
8.0.300.0000.00818.77
8.0.290.0040.00416.63
8.0.280.0030.00318.39
8.0.270.0000.00717.18
8.0.260.0060.00017.20
8.0.250.0000.00716.96
8.0.240.0000.00717.00
8.0.230.0030.00316.86
8.0.220.0000.00816.73
8.0.210.0030.00316.84
8.0.200.0030.00316.75
8.0.190.0040.00416.74
8.0.180.0070.00016.80
8.0.170.0090.00016.89
8.0.160.0000.00716.76
8.0.150.0050.00316.77
8.0.140.0030.00516.76
8.0.130.0000.00613.18
8.0.120.0040.00416.80
8.0.110.0040.00416.83
8.0.100.0030.00316.86
8.0.90.0000.00816.88
8.0.80.0070.01416.80
8.0.70.0000.00716.77
8.0.60.0050.00216.64
8.0.50.0000.00716.71
8.0.30.0080.01217.07
8.0.20.0110.00917.40
8.0.10.0030.00516.99
8.0.00.0110.00916.68
7.4.330.0030.00315.08
7.4.320.0030.00316.38
7.4.300.0030.00316.42
7.4.290.0040.00416.45
7.4.280.0030.00316.42
7.4.270.0030.00316.54
7.4.260.0070.00016.50
7.4.250.0000.00716.42
7.4.240.0030.00416.46
7.4.230.0030.00316.63
7.4.220.0090.00916.38
7.4.210.0040.01116.54
7.4.200.0030.00316.50
7.4.160.0080.01216.51
7.4.150.0150.00817.40
7.4.140.0090.00917.86
7.4.130.0070.01116.46
7.4.120.0090.00816.44
7.4.110.0070.01116.50
7.4.100.0130.01016.31
7.4.90.0130.00616.32
7.4.80.0070.01019.39
7.4.70.0100.01316.51
7.4.60.0040.01516.36
7.4.50.0080.00016.57
7.4.40.0110.00516.41
7.4.30.0160.00716.49
7.4.00.0030.01514.82
7.3.330.0040.00413.11
7.3.320.0000.00513.13
7.3.310.0050.00216.16
7.3.300.0030.00316.23
7.3.290.0090.01016.11
7.3.280.0040.01116.20
7.3.270.0110.00717.40
7.3.260.0160.00316.16
7.3.250.0080.01016.36
7.3.240.0140.00316.17
7.3.230.0110.00716.39
7.3.210.0190.00516.19
7.3.200.0120.00816.16
7.3.190.0030.01716.50
7.3.180.0090.00616.41
7.3.170.0080.01516.35
7.3.160.0060.01016.35
7.3.120.0030.01314.47
7.2.330.0210.00016.69
7.2.320.0120.00616.45
7.2.310.0040.01316.39
7.2.300.0060.00916.79
7.2.290.0160.00316.67
7.2.60.0070.00716.91
7.2.00.0000.01619.08
7.1.200.0130.00615.73
7.1.100.0000.00918.02
7.1.70.0030.00517.26
7.1.60.0000.01317.09
7.1.50.0000.01617.04
7.1.00.0000.08022.43
7.0.200.0030.01416.77
7.0.140.0030.07321.99
7.0.60.0070.05319.78
7.0.50.0030.06717.84
7.0.40.0100.05319.98
7.0.30.0270.05320.20
7.0.20.0330.07720.21
7.0.10.0130.06320.00
7.0.00.0000.04320.19
5.6.280.0000.07721.15
5.6.210.0000.06020.72
5.6.200.0070.08018.23
5.6.190.0070.08720.27
5.6.180.0400.05020.44
5.6.170.0230.06720.48
5.6.160.0030.09020.33
5.6.150.0070.05318.15
5.6.140.0030.05718.12
5.6.130.0030.05718.13
5.6.120.0130.05021.01
5.6.110.0070.08320.97
5.6.100.0030.08721.12
5.6.90.0100.06320.97
5.6.80.0100.07020.40
5.5.350.3230.04320.32
5.5.340.0030.07317.96
5.5.330.0170.07020.15
5.5.320.0300.04720.18
5.5.310.0400.07720.29
5.5.300.0030.08318.02
5.5.290.0030.08717.98
5.5.280.0130.07020.84
5.5.270.0130.06720.96
5.5.260.0130.06020.83
5.5.250.0100.08020.61
5.5.240.0070.04020.26
5.4.450.0330.03730.27
5.4.440.0300.05030.27
5.4.430.0100.05030.14
5.4.420.0130.05030.14
5.4.410.0270.04031.21
5.4.400.0200.04331.20
5.4.390.0130.03731.20
5.4.380.0230.04318.68
5.4.370.0130.05318.59
5.4.360.0100.07018.64
5.4.350.0200.04718.59
5.4.340.0170.05018.64
5.4.320.0060.03812.45
5.4.310.0050.04612.45
5.4.300.0070.05412.45
5.4.290.0110.05612.45
5.4.280.0090.03612.35
5.4.270.0080.03712.35
5.4.260.0110.03512.34
5.4.250.0060.03812.35
5.4.240.0070.04012.34
5.4.230.0120.04612.34
5.4.220.0040.04012.34
5.4.210.0060.04612.34
5.4.200.0050.04912.34
5.4.190.0140.04612.34
5.4.180.0080.05012.33
5.4.170.0070.05612.35
5.4.160.0060.05112.34
5.4.150.0060.03912.34
5.4.140.0070.04212.02
5.4.130.0070.05312.01
5.4.120.0060.04711.96
5.4.110.0050.04811.96
5.4.100.0120.04411.96
5.4.90.0080.04311.96
5.4.80.0070.03711.96
5.4.70.0110.03311.96
5.4.60.0100.04511.96
5.4.50.0100.04711.96
5.4.40.0100.04711.95
5.4.30.0060.04811.95
5.4.20.0070.05011.95
5.4.10.0110.05611.95
5.4.00.0080.04611.43
5.3.290.0040.04412.80
5.3.280.0050.04512.71
5.3.270.0080.04412.73
5.3.260.0110.06312.72
5.3.250.0090.03712.72
5.3.240.0060.03912.72
5.3.230.0050.04112.71
5.3.220.0080.03512.68
5.3.210.0050.04212.68
5.3.200.0100.03412.68
5.3.190.0050.04112.68
5.3.180.0080.03512.67
5.3.170.0040.04012.67
5.3.160.0060.03912.68
5.3.150.0090.03712.67
5.3.140.0070.05712.66
5.3.130.0060.05312.66
5.3.120.0070.04212.66
5.3.110.0100.04612.66
5.3.100.0060.03712.12
5.3.90.0050.05312.08
5.3.80.0090.06812.07
5.3.70.0100.04912.08
5.3.60.0090.04312.07
5.3.50.0080.03712.00
5.3.40.0090.03512.00
5.3.30.0060.03711.94
5.3.20.0070.03611.72
5.3.10.0070.03811.69
5.3.00.0070.04211.68
5.2.170.0040.0349.18
5.2.160.0060.0309.18
5.2.150.0040.0319.18
5.2.140.0060.0309.18
5.2.130.0050.0309.14
5.2.120.0080.0269.14
5.2.110.0060.0299.14
5.2.100.0060.0289.14
5.2.90.0070.0359.13
5.2.80.0080.0489.13
5.2.70.0050.0429.13
5.2.60.0090.0299.09
5.2.50.0050.0319.05
5.2.40.0070.0289.04
5.2.30.0050.0329.00
5.2.20.0060.0318.99
5.2.10.0110.0368.92
5.2.00.0050.0368.79
5.1.60.0070.0238.07
5.1.50.0030.0288.06
5.1.40.0060.0258.05
5.1.30.0060.0278.40
5.1.20.0060.0288.42
5.1.10.0080.0248.14
5.1.00.0040.0378.14
5.0.50.0070.0196.62
5.0.40.0040.0216.48
5.0.30.0060.0396.30
5.0.20.0060.0236.26
5.0.10.0070.0246.24
5.0.00.0060.0346.23
4.4.90.0050.0184.78
4.4.80.0050.0194.76
4.4.70.0030.0184.75
4.4.60.0060.0144.75
4.4.50.0030.0174.77
4.4.40.0010.0294.71
4.4.30.0020.0194.76
4.4.20.0030.0184.84
4.4.10.0030.0174.85
4.4.00.0020.0274.76
4.3.110.0040.0184.67
4.3.100.0030.0174.66
4.3.90.0040.0184.63
4.3.80.0040.0264.59
4.3.70.0050.0204.63
4.3.60.0040.0184.63
4.3.50.0050.0214.63
4.3.40.0050.0314.54
4.3.30.0060.0193.29
4.3.20.0040.0203.27
4.3.10.0030.0213.22
4.3.00.0100.01331.20

preferences:
37.73 ms | 401 KiB | 5 Q