3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = "<td>&lt;h1&gt;Katowice =&lt; Krakow &lt;/h1&gt;</td>"; //$html = "<p><span>Copyright © 2008 Your Company Name</span>"; $html = mb_convert_encoding($html, 'HTML-ENTITIES', "UTF-8"); //$html = htmlspecialchars($html); print $html."\n"; //$html = htmlspecialchars_decode($html); //$html = mb_convert_encoding($html, "UTF-8", 'HTML-ENTITIES'); print $html;

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.01016.50
8.3.50.0100.00820.96
8.3.40.0120.00618.58
8.3.30.0180.00018.72
8.3.20.0000.00818.80
8.3.10.0080.00021.69
8.3.00.0080.00017.79
8.2.180.0060.01116.50
8.2.170.0040.01122.96
8.2.160.0110.00321.02
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0020.00521.00
8.2.120.0060.00326.35
8.2.110.0030.00622.20
8.2.100.0000.01221.03
8.2.90.0000.00817.88
8.2.80.0060.00318.66
8.2.70.0030.00617.80
8.2.60.0070.00017.63
8.2.50.0000.00817.55
8.2.40.0000.00819.47
8.2.30.0040.00418.06
8.2.20.0030.00517.64
8.2.10.0040.00418.10
8.2.00.0040.00418.07
8.1.280.0030.01225.92
8.1.270.0060.00323.66
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0040.00423.92
8.1.230.0090.00319.14
8.1.220.0080.00017.78
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0030.00519.01
8.1.180.0030.00618.10
8.1.170.0050.00218.88
8.1.160.0040.00418.84
8.1.150.0000.00718.82
8.1.140.0000.00819.57
8.1.130.0000.00717.60
8.1.120.0000.00717.38
8.1.110.0060.00317.32
8.1.100.0000.00717.51
8.1.90.0030.00617.48
8.1.80.0000.00717.52
8.1.70.0000.00717.37
8.1.60.0030.00617.54
8.1.50.0050.00317.49
8.1.40.0080.00017.34
8.1.30.0030.00617.71
8.1.20.0000.00717.58
8.1.10.0050.00217.47
8.1.00.0080.00017.52
8.0.300.0070.00018.77
8.0.290.0000.00716.88
8.0.280.0070.00018.41
8.0.270.0030.00317.26
8.0.260.0000.00817.22
8.0.250.0030.00317.04
8.0.240.0030.00317.02
8.0.230.0050.00316.94
8.0.220.0020.00516.96
8.0.210.0000.00916.85
8.0.200.0030.00316.87
8.0.190.0050.00317.07
8.0.180.0080.00016.92
8.0.170.0050.00216.92
8.0.160.0000.00817.03
8.0.150.0000.00716.87
8.0.140.0030.00316.81
8.0.130.0060.00313.32
8.0.120.0040.00416.93
8.0.110.0000.00716.78
8.0.100.0040.00416.97
8.0.90.0000.00817.02
8.0.80.0090.00616.92
8.0.70.0070.00017.01
8.0.60.0050.00316.93
8.0.50.0000.00716.82
8.0.30.0080.01017.11
8.0.20.0070.01217.40
8.0.10.0000.00716.93
8.0.00.0100.01116.85
7.4.330.0050.00015.08
7.4.320.0000.00616.47
7.4.300.0030.00316.61
7.4.290.0070.00016.62
7.4.280.0080.00016.57
7.4.270.0070.00016.48
7.4.260.0050.00216.34
7.4.250.0040.00416.47
7.4.240.0030.00316.45
7.4.230.0000.00716.48
7.4.220.0120.00916.55
7.4.210.0030.01116.70
7.4.200.0000.00716.47
7.4.160.0090.00916.38
7.4.150.0130.00717.40
7.4.140.0110.01017.86
7.4.130.0050.01216.56
7.4.120.0090.01216.53
7.4.110.0060.01316.42
7.4.100.0060.01116.52
7.4.90.0140.01016.40
7.4.80.0030.01319.39
7.4.70.0180.00616.46
7.4.60.0060.01016.52
7.4.50.0000.01716.48
7.4.40.0080.00816.41
7.4.30.0160.00016.49
7.4.00.0120.00315.01
7.3.330.0000.00513.16
7.3.320.0080.00213.11
7.3.310.0030.00316.31
7.3.300.0000.00716.11
7.3.290.0100.00816.25
7.3.280.0030.01116.31
7.3.270.0140.00317.40
7.3.260.0000.01716.38
7.3.250.0060.01416.43
7.3.240.0080.01116.52
7.3.230.0130.01016.39
7.3.210.0000.01616.16
7.3.200.0120.00616.65
7.3.190.0100.00716.55
7.3.180.0060.01016.39
7.3.170.0100.00716.53
7.3.160.0090.00616.46
7.2.330.0100.00716.75
7.2.320.0110.00716.62
7.2.310.0030.01316.62
7.2.300.0080.00816.81
7.2.290.0030.01316.72
7.2.00.0030.01019.32
7.1.100.0060.00618.22
7.1.70.0100.00017.25
7.1.60.0100.01319.25
7.1.00.0070.07322.28
7.0.200.0000.00916.94
7.0.60.0100.05721.59
7.0.50.0170.06720.36
7.0.40.0130.06320.30
7.0.30.0300.05720.22
7.0.20.0330.05020.28
7.0.10.0170.06020.38
7.0.00.0230.05720.32
5.6.280.0100.06721.10
5.6.210.0100.07020.46
5.6.200.0230.06021.05
5.6.190.0230.05321.07
5.6.180.0300.06021.20
5.6.170.0270.05021.15
5.6.160.0200.05321.06
5.6.150.0200.05321.06
5.6.140.0130.05321.06
5.6.130.0270.06021.11
5.6.120.0230.05321.02
5.6.110.0230.06021.00
5.6.100.0430.05321.04
5.6.90.0570.05721.09
5.6.80.0430.05720.34
5.6.70.0570.05720.40
5.6.60.0370.05020.39
5.6.50.0430.07720.55
5.6.40.0330.06020.39
5.6.30.0430.05020.41
5.6.20.0300.06720.46
5.6.10.0170.05320.38
5.6.00.0400.05020.30
5.5.350.3700.04320.43
5.5.340.0230.05721.04
5.5.330.0270.05320.86
5.5.320.0300.05020.82
5.5.310.0130.06321.00
5.5.300.0230.05020.95
5.5.290.0100.06020.85
5.5.280.0100.06020.83
5.5.270.0370.06720.82
5.5.260.0370.06321.03
5.5.250.0530.07020.84
5.5.240.0430.05320.23
5.5.230.0400.06020.23
5.5.220.0330.05320.20
5.5.210.0530.04720.25
5.5.200.0430.05720.13
5.5.190.0470.07720.30
5.5.180.0130.05720.20
5.5.160.0400.05020.20
5.5.150.0530.07720.38
5.5.140.0370.07020.13
5.5.130.0430.05320.14
5.5.120.0400.05320.20
5.5.110.0200.05720.10
5.5.100.0100.05320.18
5.5.90.0200.04320.18
5.5.80.0370.05319.95
5.5.70.0430.05320.05
5.5.60.0370.05720.25
5.5.50.0400.05720.15
5.5.40.0430.05720.04
5.5.30.0630.04320.08
5.5.20.0530.05720.04
5.5.10.0630.05720.06
5.5.00.0600.07020.07

preferences:
61.58 ms | 401 KiB | 5 Q