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.0060.00318.81
8.3.120.0110.00721.09
8.3.110.0050.00216.88
8.3.100.0030.00724.06
8.3.90.0060.00326.77
8.3.80.0040.00816.88
8.3.70.0150.00317.00
8.3.60.0090.00617.13
8.3.50.0100.00620.50
8.3.40.0100.00321.86
8.3.30.0090.00618.80
8.3.20.0050.00224.18
8.3.10.0000.00724.66
8.3.00.0080.00326.16
8.2.250.0050.00317.06
8.2.240.0070.00317.53
8.2.230.0100.00320.94
8.2.220.0130.00637.54
8.2.210.0000.00826.77
8.2.200.0040.00416.75
8.2.190.0060.01217.00
8.2.180.0040.01125.92
8.2.170.0120.00319.29
8.2.160.0090.00622.96
8.2.150.0070.00025.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0030.00620.78
8.2.100.0110.00419.70
8.2.90.0050.00318.00
8.2.80.0070.00319.09
8.2.70.0030.00517.88
8.2.60.0030.00517.75
8.2.50.0030.00617.98
8.2.40.0040.00418.41
8.2.30.0000.00718.31
8.2.20.0000.00720.70
8.2.10.0040.00418.48
8.2.00.0030.00719.68
8.1.300.0060.00320.39
8.1.290.0060.00330.84
8.1.280.0140.00325.92
8.1.270.0000.00823.99
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0060.00322.27
8.1.230.0110.00021.16
8.1.220.0050.00318.83
8.1.210.0040.00418.77
8.1.200.0060.00317.72
8.1.190.0000.00817.73
8.1.180.0000.00818.10
8.1.170.0000.00817.63
8.1.160.0080.00019.21
8.1.150.0060.00318.95
8.1.140.0040.00417.77
8.1.130.0050.00319.08
8.1.120.0040.00417.85
8.1.110.0040.00417.72
8.1.100.0050.00217.78
8.1.90.0080.00017.73
8.1.80.0170.00017.76
8.1.70.0090.00617.66
8.1.60.0140.00517.82
8.1.50.0090.00917.93
8.1.40.0130.00517.86
8.1.30.0180.00017.94
8.1.20.0160.00317.82
8.1.10.0180.00017.80
8.1.00.0150.00317.59
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0040.00418.58
8.0.270.0000.00716.87
8.0.260.0040.00418.47
8.0.250.0000.00716.99
8.0.240.0000.00717.09
8.0.230.0030.00317.17
8.0.220.0030.00317.05
8.0.210.0060.00916.92
8.0.200.0130.00317.07
8.0.190.0110.00017.00
8.0.180.0000.01016.95
8.0.170.0070.00316.99
8.0.160.0090.00317.00
8.0.150.0060.00616.95
8.0.140.0030.01016.84
8.0.130.0100.00516.92
8.0.120.0160.00016.88
8.0.110.0120.00016.91
8.0.100.0140.00016.89
8.0.90.0120.00316.93
8.0.80.0120.00316.96
8.0.70.0110.00516.87
8.0.60.0120.00216.99
8.0.50.0050.01017.07
8.0.30.0060.00616.94
8.0.20.0120.00017.08
8.0.10.0040.00816.90
7.4.330.0050.00015.55
7.4.320.0060.00016.78
7.4.300.0030.00816.68
7.4.290.0070.00516.49
7.4.280.0060.00616.64
7.4.270.0000.01216.73
7.4.260.0030.00916.73
7.4.250.0130.00016.61
7.4.240.0120.00016.62
7.4.230.0070.00716.61
7.4.220.0100.00316.53
7.4.210.0070.00416.68
7.4.200.0040.00716.71
7.4.190.0110.00016.64
7.4.180.0110.00016.68
7.4.160.0030.00916.57
7.4.150.0090.00516.50
7.4.140.0030.00816.47
7.4.130.0080.00416.73
7.4.120.0060.00616.60
7.4.110.0050.00516.68
7.4.100.0060.00616.67
7.4.90.0130.00016.61
7.4.80.0120.00016.53
7.4.70.0130.00016.51
7.4.60.0120.00016.74
7.4.50.0080.00416.49
7.4.40.0080.00416.37
7.4.30.0060.00616.56
7.4.20.0070.00416.55
7.4.10.0130.00016.67
7.4.00.0120.00016.65

preferences:
27.3 ms | 403 KiB | 5 Q