3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'Hello'; var_dump(mb_detect_encoding($string)); mb_detect_order('UTF-8'); print_r(['order' => mb_detect_order(), 'detected' => mb_detect_encoding($string)]);

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.70.0120.00316.13
8.3.60.0090.00616.50
8.3.50.0120.00721.87
8.3.40.0140.00018.79
8.3.30.0070.00718.63
8.3.20.0040.00420.33
8.3.10.0060.00323.70
8.3.00.0040.00419.13
8.2.190.0070.01416.58
8.2.180.0140.00718.66
8.2.170.0090.00622.96
8.2.160.0100.00320.38
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0000.00819.89
8.2.110.0100.00022.15
8.2.100.0080.00417.91
8.2.90.0050.00219.22
8.2.80.0040.00417.97
8.2.70.0030.00517.63
8.2.60.0030.00618.05
8.2.50.0040.00418.07
8.2.40.0080.00021.05
8.2.30.0040.00420.65
8.2.20.0050.00217.76
8.2.10.0050.00217.93
8.2.00.0040.00418.10
8.1.280.0100.01025.92
8.1.270.0040.00423.96
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00022.45
8.1.230.0110.00017.55
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0050.00318.92
8.1.160.0000.00721.93
8.1.150.0030.00618.94
8.1.140.0040.00419.57
8.1.130.0030.00317.69
8.1.120.0000.00717.39
8.1.110.0000.00917.49
8.1.100.0080.00017.46
8.1.90.0000.00717.45
8.1.80.0000.00917.44
8.1.70.0030.00317.35
8.1.60.0040.00417.51
8.1.50.0040.00417.56
8.1.40.0000.00817.52
8.1.30.0040.00417.50
8.1.20.0070.00017.55
8.1.10.0050.00317.59
8.1.00.0050.00317.48
8.0.300.0070.00018.77
8.0.290.0060.00316.63
8.0.280.0000.00718.32
8.0.270.0080.00017.16
8.0.260.0000.00617.23
8.0.250.0000.00716.91
8.0.240.0040.00416.92
8.0.230.0060.00016.91
8.0.220.0040.00416.91
8.0.210.0050.00316.76
8.0.200.0060.00016.84
8.0.190.0040.00416.89
8.0.180.0000.00716.93
8.0.170.0040.00416.76
8.0.160.0000.00816.82
8.0.150.0030.00516.82
8.0.140.0030.00516.84
8.0.130.0060.00013.33
8.0.120.0000.00816.89
8.0.110.0000.00716.82
8.0.100.0070.00016.68
8.0.90.0070.00016.84
8.0.80.0100.00616.93
8.0.70.0040.00416.91
8.0.60.0000.00816.71
8.0.50.0000.00716.78
8.0.30.0090.00917.00
8.0.20.0110.00617.40
8.0.10.0040.00416.74
8.0.00.0100.00816.73
7.4.330.0030.00315.08
7.4.320.0070.00316.57
7.4.300.0030.00316.64
7.4.290.0040.00416.59
7.4.280.0000.00716.39
7.4.270.0000.00816.57
7.4.260.0000.00816.55
7.4.250.0000.00716.32
7.4.240.0040.00416.57
7.4.230.0000.00716.52
7.4.220.0080.00816.69
7.4.210.0090.00916.66
7.4.200.0000.00716.30
7.4.160.0090.00616.21
7.4.150.0140.00717.40
7.4.140.0090.01217.86
7.4.130.0120.00816.43
7.4.120.0050.01216.47
7.4.110.0040.01416.48
7.4.100.0160.00616.50
7.4.90.0030.01516.57
7.4.80.0090.00719.39
7.4.70.0140.00216.30
7.4.60.0070.01016.38
7.4.50.0000.00816.29
7.4.40.0130.00316.29
7.4.30.0080.01416.45
7.4.00.0030.00514.66
7.3.330.0000.00613.01
7.3.320.0030.00313.05
7.3.310.0000.00716.40
7.3.300.0030.00316.28
7.3.290.0030.01416.27
7.3.280.0110.00816.26
7.3.270.0130.00417.40
7.3.260.0030.01416.18
7.3.250.0060.01216.27
7.3.240.0090.00816.32
7.3.230.0130.00616.41
7.3.210.0110.00716.36
7.3.200.0070.01016.21
7.3.190.0130.00316.32
7.3.180.0130.00616.41
7.3.170.0100.01016.48
7.3.160.0100.00616.47
7.2.330.0050.01416.41
7.2.320.0140.00716.48
7.2.310.0160.00016.37
7.2.300.0070.01016.38
7.2.290.0070.01016.58
7.1.200.0100.00015.48
7.1.100.0000.00918.04
7.1.70.0070.00717.13
7.1.60.0030.02019.13
7.1.50.0070.01116.73
7.1.00.0070.07322.30
7.0.200.0280.00614.39
7.0.60.0100.07320.00
7.0.50.0070.07017.87
7.0.40.0070.08020.23
7.0.30.0330.06320.33
7.0.20.0230.05720.15
7.0.10.0230.05720.19
7.0.00.0030.09020.18
5.6.280.0000.06021.12
5.6.210.0070.05320.54
5.6.200.0130.07318.21
5.6.190.0030.05320.57
5.6.180.0030.05320.52
5.6.170.0200.04320.73
5.6.160.0070.08320.54
5.6.150.0030.07018.17
5.6.140.0000.04718.14
5.6.130.0070.06018.23
5.6.120.0030.05321.00
5.6.110.0070.08721.11
5.6.100.0130.07720.95
5.6.90.0100.08720.98
5.6.80.0070.07020.41
5.6.70.0130.03720.50
5.5.350.0100.06320.38
5.5.340.0130.07318.06
5.5.330.0170.07020.43
5.5.320.0030.05020.38
5.5.310.0270.06020.37
5.5.300.0100.07318.07
5.5.290.0100.05017.98
5.5.280.0070.04720.75
5.5.270.0030.04320.83
5.5.260.0070.06020.86
5.5.250.0100.08320.54
5.5.240.0100.07720.02
5.4.450.0830.04719.20
5.4.440.0600.06319.61
5.4.430.0870.07719.58
5.4.420.0800.05719.33
5.4.410.0700.06319.22
5.4.400.0830.06019.15
5.4.390.0730.05019.08
5.4.380.0700.05718.84
5.4.370.0800.07018.98
5.4.360.0730.06719.25
5.4.350.0730.05319.01
5.4.340.0730.05019.14
5.4.320.0770.05019.00
5.4.310.0670.05719.26
5.4.300.0970.05719.15
5.4.290.0830.04319.28
5.4.280.0770.05719.14
5.4.270.0730.06019.14
5.4.260.0800.05019.05
5.4.250.0400.07018.86
5.4.240.0070.05718.86
5.4.230.0030.06019.05
5.4.220.0870.04718.86
5.4.210.0530.05019.13
5.4.200.0430.05719.37
5.4.190.0730.04019.05
5.4.180.0200.04318.99
5.4.170.0430.05719.21
5.4.160.0230.05018.96
5.4.150.0070.05319.35
5.4.140.0300.05016.32
5.4.130.0370.05316.50
5.4.120.0370.05316.40
5.4.110.0130.04716.62
5.4.100.0100.04716.57
5.4.90.0330.04716.64
5.4.80.0530.05016.50
5.4.70.0670.04316.25
5.4.60.0600.04716.25
5.4.50.0600.05716.57
5.4.40.0730.05316.22
5.4.30.0630.05316.25
5.4.20.0600.05716.15
5.4.10.0630.04016.59
5.4.00.0500.05315.96

preferences:
52.4 ms | 401 KiB | 5 Q