3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test{ function __construct(){ $this->page="Test<br/>Test hého"; } function text(){ echo "\n START\n"; var_dump(mb_detect_encoding($this->page)); echo "\n 1: "; var_dump(mb_detect_encoding($this->page)); echo "\n 2: "; var_dump(mb_detect_encoding(htmlentities($this->page, ENT_IGNORE, 'UTF-8'))); $this->page = html_entity_decode($this->page); echo "\n 3: "; var_dump(mb_detect_encoding($this->page)); } } ?>

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.0060.01216.38
8.3.50.0040.01116.48
8.3.40.0040.01118.75
8.3.30.0040.01118.58
8.3.20.0070.00020.34
8.3.10.0090.00923.55
8.3.00.0000.00723.61
8.2.180.0100.01018.29
8.2.170.0170.00022.96
8.2.160.0110.00320.35
8.2.150.0040.00425.66
8.2.140.0090.00024.66
8.2.130.0040.00422.21
8.2.120.0080.00026.35
8.2.110.0030.00621.18
8.2.100.0100.00017.59
8.2.90.0000.00819.09
8.2.80.0050.00317.97
8.2.70.0000.00817.38
8.2.60.0030.00617.68
8.2.50.0040.00418.10
8.2.40.0050.00320.61
8.2.30.0080.00319.20
8.2.20.0000.00717.94
8.2.10.0070.00417.86
8.2.00.0050.00217.88
8.1.280.0170.00325.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0060.00321.19
8.1.230.0110.00017.70
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00617.10
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0040.00418.45
8.1.160.0050.00218.82
8.1.150.0070.00020.58
8.1.140.0040.00417.60
8.1.130.0070.00020.42
8.1.120.0040.00417.25
8.1.110.0040.00417.33
8.1.100.0000.00817.24
8.1.90.0030.00317.34
8.1.80.0080.00017.27
8.1.70.0000.00817.38
8.1.60.0080.00017.50
8.1.50.0030.00617.33
8.1.40.0070.00317.41
8.1.30.0000.00717.50
8.1.20.0040.00717.57
8.1.10.0080.00017.41
8.1.00.0040.00417.30
8.0.300.0000.00818.77
8.0.290.0100.00016.63
8.0.280.0040.00418.36
8.0.270.0040.00417.15
8.0.260.0030.00316.66
8.0.250.0030.00316.79
8.0.240.0070.00016.88
8.0.230.0070.00016.79
8.0.220.0030.00316.81
8.0.210.0030.00316.66
8.0.200.0000.00616.75
8.0.190.0030.00616.77
8.0.180.0000.00716.70
8.0.170.0000.00816.84
8.0.160.0000.00716.69
8.0.150.0070.00416.64
8.0.140.0090.00016.77
8.0.130.0080.00013.17
8.0.120.0040.00416.74
8.0.110.0030.00516.82
8.0.100.0080.00016.85
8.0.90.0030.00516.61
8.0.80.0100.00716.79
8.0.70.0040.00416.79
8.0.60.0050.00216.66
8.0.50.0040.00416.82
8.0.30.0100.01017.04
8.0.20.0120.00717.40
8.0.10.0080.00016.74
8.0.00.0100.01016.59
7.4.330.0060.00016.57
7.4.320.0060.00016.39
7.4.300.0060.00016.39
7.4.290.0070.00016.30
7.4.280.0070.00016.41
7.4.270.0040.00416.48
7.4.260.0030.00316.44
7.4.250.0070.00016.25
7.4.240.0000.00716.41
7.4.230.0030.00316.59
7.4.220.0090.00916.26
7.4.210.0040.01516.43
7.4.200.0000.00716.30
7.4.160.0110.00516.44
7.4.150.0150.00317.40
7.4.140.0070.01217.86
7.4.130.0060.01316.28
7.4.120.0110.00616.45
7.4.110.0000.01616.38
7.4.100.0100.00716.42
7.4.90.0140.00616.36
7.4.80.0070.01019.39
7.4.70.0060.01616.31
7.4.60.0130.00316.34
7.4.50.0100.00616.10
7.4.40.0140.00316.13
7.4.30.0100.00616.46
7.4.00.0110.00514.63
7.3.330.0000.00813.06
7.3.320.0030.00313.13
7.3.310.0030.00316.25
7.3.300.0030.00316.24
7.3.290.0090.00916.18
7.3.280.0100.00716.18
7.3.270.0140.00417.40
7.3.260.0100.00816.22
7.3.250.0100.00816.24
7.3.240.0070.01116.18
7.3.230.0070.01016.50
7.3.210.0120.00616.34
7.3.200.0090.00616.51
7.3.190.0040.01116.28
7.3.180.0070.01016.47
7.3.170.0030.01216.45
7.3.160.0120.00916.41
7.3.120.0130.00314.50
7.3.110.0070.01114.74
7.3.100.0140.00014.73
7.3.90.0070.00314.96
7.3.80.0100.00714.71
7.3.70.0040.00714.37
7.3.60.0030.00714.59
7.3.50.0070.00714.80
7.3.40.0120.00314.44
7.3.30.0130.00314.77
7.3.20.0030.01316.33
7.3.10.0050.00816.42
7.3.00.0080.00516.38
7.2.330.0100.00916.61
7.2.320.0130.00516.49
7.2.310.0100.00716.43
7.2.300.0070.01116.54
7.2.290.0070.01416.54
7.2.250.0140.00314.77
7.2.240.0030.01714.75
7.2.230.0080.00414.81
7.2.220.0070.00714.71
7.2.210.0040.01415.10
7.2.200.0070.00314.70
7.2.190.0060.00314.98
7.2.180.0040.01114.78
7.2.170.0090.00314.72
7.2.130.0070.00716.47
7.2.120.0060.00516.72
7.2.110.0020.01016.55
7.2.100.0060.00816.61
7.2.90.0050.00616.64
7.2.80.0060.00616.47
7.2.70.0070.00616.53
7.2.60.0070.00716.60
7.2.50.0080.00616.48
7.2.40.0030.01116.81
7.2.30.0080.00416.45
7.2.20.0110.00716.60
7.2.10.0060.00716.57
7.2.00.0090.00616.52
7.1.330.0060.00615.65
7.1.320.0040.00815.48
7.1.310.0000.01315.55
7.1.300.0080.00515.76
7.1.290.0040.00415.41
7.1.280.0070.00715.63
7.1.270.0030.00815.77
7.1.260.0030.01015.50
7.1.250.0040.00615.42
7.1.200.0000.01315.67
7.1.110.0030.01417.93
7.1.100.0100.00717.81
7.1.90.0020.01817.92
7.1.80.0040.01317.74
7.1.70.0060.00917.05
7.1.60.0170.02335.18
7.1.50.0290.01034.68
7.1.40.0190.02234.49
7.1.30.0290.01034.41
7.1.20.0290.01034.23
7.1.10.0160.00316.29
7.1.00.0030.01616.52
7.0.250.0120.00517.65
7.0.240.0000.01717.69
7.0.230.0070.01317.31
7.0.220.0110.00717.66
7.0.210.0090.01016.41
7.0.200.0140.00616.38
7.0.190.0060.01316.67
7.0.180.0110.00816.04
7.0.170.0030.01516.13
7.0.160.0070.01216.02
7.0.150.0030.01515.98
7.0.140.0120.00416.04
7.0.130.0060.00916.48
7.0.120.0120.00316.09
7.0.110.0120.00316.16
7.0.100.0050.01116.25
7.0.90.0040.01316.14
7.0.80.0070.00716.10
7.0.70.0080.00616.05
7.0.60.0110.01115.82
7.0.50.0060.01416.41
7.0.40.0030.01616.26
7.0.30.0040.01416.27
7.0.20.0070.00716.32
7.0.10.0070.00716.15
7.0.00.0120.00316.17

preferences:
56.62 ms | 400 KiB | 5 Q