3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = ['bl', 'Bl', 'Blog', 'Blo']; foreach ($strings as &$str) { var_dump(mb_detect_encoding($str, mb_list_encodings())); }

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.130.0160.00618.27
8.3.120.0130.00318.86
8.3.110.0080.00016.73
8.3.100.0120.00616.69
8.3.90.0090.00926.77
8.3.80.0090.00016.75
8.3.70.0150.00616.63
8.3.60.0100.01318.68
8.3.50.0120.00320.34
8.3.40.0090.00621.80
8.3.30.0080.00818.46
8.3.20.0000.00824.18
8.3.10.0040.00424.66
8.3.00.0000.00826.16
8.2.250.0030.00718.40
8.2.240.0060.00316.91
8.2.230.0080.00020.94
8.2.220.0120.00324.06
8.2.210.0060.00326.77
8.2.200.0100.00016.63
8.2.190.0070.00716.58
8.2.180.0110.01125.92
8.2.170.0090.00919.04
8.2.160.0030.01722.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00426.16
8.2.110.0030.00621.21
8.2.100.0040.00717.99
8.2.90.0030.00617.97
8.2.80.0050.00319.55
8.2.70.0040.00418.00
8.2.60.0040.00418.00
8.2.50.0030.00517.98
8.2.40.0040.00418.22
8.2.30.0040.00418.30
8.2.20.0000.00820.55
8.2.10.0040.00418.46
8.2.00.0040.00419.43
8.1.300.0090.00016.09
8.1.290.0060.00330.84
8.1.280.0120.00325.92
8.1.270.0080.00023.99
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0060.00322.55
8.1.230.0110.00022.25
8.1.220.0050.00317.77
8.1.210.0060.00318.85
8.1.200.0080.00017.60
8.1.190.0070.00317.60
8.1.180.0060.00318.10
8.1.170.0000.00817.62
8.1.160.0060.00319.13
8.1.150.0040.00418.87
8.1.140.0000.00817.55
8.1.130.0030.00319.11
8.1.120.0040.00417.64
8.1.110.0080.00017.61
8.1.100.0000.00817.71
8.1.90.0050.00217.70
8.1.80.0140.00317.48
8.1.70.0060.01117.54
8.1.60.0180.00417.85
8.1.50.0090.01317.59
8.1.40.0060.01517.70
8.1.30.0180.00617.88
8.1.20.0190.00417.90
8.1.10.0150.00417.61
8.1.00.0090.00917.61
8.0.300.0070.00020.16
8.0.290.0040.00416.87
8.0.280.0000.00718.57
8.0.270.0000.00716.95
8.0.260.0000.00618.48
8.0.250.0000.00717.07
8.0.240.0030.00316.98
8.0.230.0070.00017.07
8.0.220.0070.00017.04
8.0.210.0120.00316.98
8.0.200.0160.00017.02
8.0.190.0100.00716.99
8.0.180.0130.00316.95
8.0.170.0060.00917.00
8.0.160.0130.00317.00
8.0.150.0080.00816.97
8.0.140.0050.01016.75
8.0.130.0000.01316.85
8.0.120.0080.00416.86
8.0.110.0090.00316.52
8.0.100.0090.00216.94
8.0.90.0090.00216.93
8.0.80.0060.00616.89
8.0.70.0100.00216.89
8.0.60.0060.00617.02
8.0.50.0070.00516.92
8.0.30.0060.00616.97
8.0.20.0100.00316.82
8.0.10.0030.00816.95
7.4.330.0060.00015.55
7.4.320.0000.00616.66
7.4.300.0060.00616.61
7.4.290.0080.00816.64
7.4.280.0070.00416.68
7.4.270.0080.00516.60
7.4.260.0060.00516.38
7.4.250.0130.00016.51
7.4.240.0120.00016.55
7.4.230.0090.00416.68
7.4.220.0100.00216.58
7.4.210.0060.00616.64
7.4.200.0090.00316.54
7.4.190.0040.00816.45
7.4.180.0000.01316.47
7.4.160.0090.00216.66
7.4.150.0030.01016.63
7.4.140.0090.00516.62
7.4.130.0110.00016.54
7.4.120.0080.00416.24
7.4.110.0030.00916.63
7.4.100.0080.00416.69
7.4.90.0060.00616.59
7.4.80.0110.00316.48
7.4.70.0080.00316.52
7.4.60.0120.00016.55
7.4.50.0070.00416.41
7.4.40.0080.00316.43
7.4.30.0040.00816.35
7.4.20.0100.00516.46
7.4.10.0130.00016.38
7.4.00.0100.00716.57

preferences:
26.69 ms | 403 KiB | 5 Q