3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = ['bl', 'Bl', 'Blog']; foreach ($strings as &$str) { $str = mb_convert_encoding($str, 'UTF-8', mb_list_encodings()); } echo '<pre>' . print_r($strings, true) . '</pre>';

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.0090.00018.55
8.3.120.0030.00618.91
8.3.110.0170.00020.94
8.3.100.0080.00024.06
8.3.90.0040.00426.77
8.3.80.0060.00616.50
8.3.70.0150.00316.58
8.3.60.0160.00316.75
8.3.50.0110.00420.27
8.3.40.0030.01021.90
8.3.30.0100.00618.66
8.3.20.0000.00824.18
8.3.10.0050.00324.66
8.3.00.0040.00426.16
8.2.250.0090.00016.66
8.2.240.0100.01016.98
8.2.230.0060.00322.58
8.2.220.0080.00037.54
8.2.210.0080.00026.77
8.2.200.0030.00616.88
8.2.190.0090.00916.58
8.2.180.0140.00725.92
8.2.170.0060.00919.04
8.2.160.0080.00822.96
8.2.150.0000.00725.66
8.2.140.0000.00724.66
8.2.130.0000.00826.16
8.2.120.0030.00626.16
8.2.110.0090.00019.38
8.2.100.0130.00017.72
8.2.90.0040.00417.75
8.2.80.0030.00617.97
8.2.70.0040.00418.00
8.2.60.0000.00817.75
8.2.50.0000.00817.98
8.2.40.0040.00418.28
8.2.30.0000.00818.32
8.2.20.0000.00720.73
8.2.10.0000.00718.42
8.2.00.0050.00319.54
8.1.300.0150.00016.25
8.1.290.0070.00318.88
8.1.280.0100.00725.92
8.1.270.0090.00023.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00322.67
8.1.230.0110.00017.82
8.1.220.0070.00317.77
8.1.210.0030.00518.77
8.1.200.0000.01017.73
8.1.190.0040.00417.47
8.1.180.0090.00018.10
8.1.170.0040.00417.62
8.1.160.0000.00818.96
8.1.150.0070.00018.75
8.1.140.0070.00217.64
8.1.130.0050.00219.09
8.1.120.0000.00817.65
8.1.110.0040.00417.70
8.1.100.0040.00417.65
8.1.90.0050.00317.65
8.1.80.0090.00217.55
8.1.70.0080.00817.43
8.1.60.0050.00717.70
8.1.50.0120.00017.71
8.1.40.0100.00317.73
8.1.30.0170.00017.74
8.1.20.0150.00317.79
8.1.10.0120.00317.69
8.1.00.0090.00617.57
8.0.300.0060.00318.77
8.0.290.0050.00316.75
8.0.280.0040.00418.58
8.0.270.0000.00716.92
8.0.260.0040.00418.50
8.0.250.0000.00817.12
8.0.240.0030.00316.98
8.0.230.0030.00317.17
8.0.220.0040.00416.91
8.0.210.0140.00016.95
8.0.200.0030.00517.09
8.0.190.0040.00416.96
8.0.180.0090.00216.97
8.0.170.0150.00316.94
8.0.160.0190.00317.05
8.0.150.0160.00016.87
8.0.140.0070.01016.94
8.0.130.0050.01016.93
8.0.120.0080.00816.91
8.0.110.0120.00216.98
8.0.100.0120.00416.90
8.0.90.0100.00516.99
8.0.80.0150.00017.09
8.0.70.0080.00816.91
8.0.60.0120.00416.87
8.0.50.0120.00516.93
8.0.30.0130.00317.04
8.0.20.0120.00417.00
8.0.10.0070.00817.09
7.4.330.0050.00015.55
7.4.320.0060.00016.80
7.4.300.0120.00616.70
7.4.290.0140.00316.66
7.4.280.0180.00016.68
7.4.270.0120.00616.56
7.4.260.0140.00716.52
7.4.250.0130.00416.75
7.4.240.0090.00616.62
7.4.230.0100.00416.71
7.4.220.0110.00316.72
7.4.210.0060.00616.75
7.4.200.0090.00516.73
7.4.190.0120.00016.82
7.4.180.0120.00416.74
7.4.160.0120.00416.54
7.4.150.0130.00516.56
7.4.140.0150.00016.74
7.4.130.0110.00416.71
7.4.120.0080.00816.80
7.4.110.0090.00616.52
7.4.100.0050.01016.74
7.4.90.0090.00616.65
7.4.80.0070.00716.57
7.4.70.0150.00016.64
7.4.60.0170.00016.60
7.4.50.0110.00216.53
7.4.40.0100.00016.59
7.4.30.0120.00016.56
7.4.20.0130.00016.63
7.4.10.0100.00416.49
7.4.00.0090.00316.68

preferences:
27.34 ms | 403 KiB | 5 Q