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)); } } $a=new Test(); $a->text(); ?>

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.0150.00316.88
8.3.50.0090.00616.71
8.3.40.0070.00719.02
8.3.30.0090.00618.62
8.3.20.0040.00420.25
8.3.10.0090.00923.56
8.3.00.0000.00723.51
8.2.180.0070.01318.41
8.2.170.0100.00722.96
8.2.160.0130.00320.47
8.2.150.0030.00525.66
8.2.140.0040.00424.66
8.2.130.0000.00822.14
8.2.120.0000.00726.35
8.2.110.0060.00320.94
8.2.100.0090.00317.97
8.2.90.0050.00319.36
8.2.80.0110.00017.97
8.2.70.0050.00517.62
8.2.60.0000.00818.04
8.2.50.0050.00318.22
8.2.40.0000.00720.50
8.2.30.0070.00419.32
8.2.20.0040.00418.09
8.2.10.0050.00517.98
8.2.00.0000.00718.13
8.1.280.0140.00725.92
8.1.270.0030.00523.88
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00421.24
8.1.230.0030.00717.76
8.1.220.0080.00017.74
8.1.210.0030.00518.77
8.1.200.0060.00317.48
8.1.190.0000.00817.36
8.1.180.0080.00018.10
8.1.170.0080.00018.65
8.1.160.0000.00718.89
8.1.150.0000.00820.66
8.1.140.0080.00017.69
8.1.130.0030.00520.68
8.1.120.0000.00817.49
8.1.110.0000.00717.52
8.1.100.0060.00317.56
8.1.90.0000.00717.37
8.1.80.0040.00417.51
8.1.70.0040.00417.49
8.1.60.0000.00817.73
8.1.50.0030.00617.54
8.1.40.0080.00417.50
8.1.30.0000.00717.80
8.1.20.0030.00717.70
8.1.10.0060.00317.53
8.1.00.0000.00817.50
8.0.300.0080.00018.84
8.0.290.0050.00516.75
8.0.280.0030.00318.45
8.0.270.0030.00617.29
8.0.260.0000.00716.90
8.0.250.0070.00016.87
8.0.240.0000.00717.00
8.0.230.0040.00316.98
8.0.220.0030.00316.80
8.0.210.0030.00316.92
8.0.200.0000.00616.98
8.0.190.0110.00016.96
8.0.180.0030.00316.86
8.0.170.0040.00416.96
8.0.160.0030.00416.87
8.0.150.0060.00316.96
8.0.140.0040.00716.77
8.0.130.0030.00613.27
8.0.120.0040.00416.93
8.0.110.0000.00716.79
8.0.100.0040.00416.81
8.0.90.0040.00416.91
8.0.80.0040.01216.87
8.0.70.0000.00816.81
8.0.60.0050.00316.75
8.0.50.0000.00716.73
8.0.30.0120.00716.91
8.0.20.0120.00817.40
8.0.10.0040.00416.97
8.0.00.0090.00916.63
7.4.330.0050.00016.63
7.4.320.0070.00016.58
7.4.300.0030.00316.58
7.4.290.0030.00516.60
7.4.280.0040.00416.59
7.4.270.0000.00716.62
7.4.260.0030.00316.56
7.4.250.0000.00716.46
7.4.240.0070.00016.53
7.4.230.0030.00316.47
7.4.220.0050.01316.71
7.4.210.0100.01016.64
7.4.200.0030.00316.67
7.4.160.0050.01116.61
7.4.150.0090.00917.40
7.4.140.0100.01117.86
7.4.130.0060.01116.47
7.4.120.0090.01016.64
7.4.110.0140.00416.52
7.4.100.0130.01016.65
7.4.90.0200.00316.55
7.4.80.0120.01219.39
7.4.70.0120.00616.74
7.4.60.0030.01316.39
7.4.50.0000.01516.77
7.4.40.0130.01016.60
7.4.30.0130.00916.49
7.4.00.0100.00314.88
7.3.330.0070.00013.31
7.3.320.0030.00313.39
7.3.310.0000.00716.48
7.3.300.0000.00716.40
7.3.290.0100.00916.39
7.3.280.0090.00716.37
7.3.270.0130.00917.40
7.3.260.0100.00716.44
7.3.250.0100.01116.59
7.3.240.0090.00816.35
7.3.230.0110.00816.36
7.3.210.0060.01116.67
7.3.200.0100.01016.41
7.3.190.0130.00316.65
7.3.180.0100.00716.54
7.3.170.0130.00316.23
7.3.160.0090.00816.51
7.2.330.0080.00816.59
7.2.320.0160.00316.71
7.2.310.0080.00916.59
7.2.300.0050.01416.63
7.2.290.0090.01516.79
7.2.110.0520.00616.30
7.2.60.0000.01216.91
7.1.200.0000.00815.71
7.1.110.0000.01517.96
7.1.100.0030.01518.10
7.1.90.0030.01317.92
7.1.80.0040.01117.92
7.1.70.0000.01417.32
7.1.60.0150.01735.16
7.1.50.0130.01734.64
7.1.40.0230.01534.48
7.1.30.0280.01134.41
7.1.20.0190.01034.33
7.1.10.0180.00316.32
7.1.00.0070.00716.71
7.0.250.0060.01217.79
7.0.240.0040.01417.99
7.0.230.0030.01317.96
7.0.220.0140.00318.02
7.0.210.0060.00916.76
7.0.200.0060.00916.74
7.0.190.0110.00716.90
7.0.180.0100.01016.51
7.0.170.0030.01016.34
7.0.160.0100.00316.19
7.0.150.0000.01416.34
7.0.140.0030.01216.49
7.0.130.0060.00916.30
7.0.120.0030.01316.62
7.0.110.0070.01416.24
7.0.100.0100.01016.30
7.0.90.0060.01316.40
7.0.80.0060.01316.31
7.0.70.0090.00616.23
7.0.60.0090.01216.31
7.0.50.0030.01016.50
7.0.40.0070.01516.39
7.0.30.0030.01716.52
7.0.20.0100.01016.63
7.0.10.0080.01116.43
7.0.00.0060.01216.55

preferences:
46.56 ms | 400 KiB | 5 Q