3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = 'Le Courrier de Sáint-Hyácinthe'; mb_internal_encoding('UTF-8'); if(!mb_check_encoding($content, 'UTF-8') OR !($content === mb_convert_encoding(mb_convert_encoding($content, 'UTF-32', 'UTF-8' ), 'UTF-8', 'UTF-32'))) { $content = mb_convert_encoding($content, 'UTF-8'); } // LE COURRIER DE SÁINT-HYÁCINTHE echo mb_convert_case($content, MB_CASE_UPPER, "UTF-8"); >

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)
5.4.230.0100.04512.37
5.4.220.0140.03912.37
5.4.210.0110.04412.38
5.4.200.0120.04112.38
5.4.190.0120.04112.37
5.4.180.0120.03912.37
5.4.170.0120.03812.38
5.4.160.0120.03912.37
5.4.150.0120.04012.37
5.4.140.0110.04012.06
5.4.130.0110.05612.04
5.4.120.0110.03812.01
5.4.110.0100.03912.00
5.4.100.0100.04212.00
5.4.90.0090.04212.00
5.4.80.0100.04212.00
5.4.70.0110.03812.00
5.4.60.0120.05412.00
5.4.50.0110.03812.00
5.4.40.0090.04211.98
5.4.30.0100.04311.98
5.4.20.0150.03911.98
5.4.10.0130.03811.99
5.4.00.0090.04611.48
5.3.280.0130.04112.71
5.3.270.0220.06212.72
5.3.260.0140.04812.72
5.3.250.0230.07112.72
5.3.240.0140.04112.72
5.3.230.0120.04512.71
5.3.220.0210.06712.68
5.3.210.0120.04612.68
5.3.200.0130.04312.68
5.3.190.0150.04312.68
5.3.180.0150.04312.67
5.3.170.0100.04712.67
5.3.160.0150.04312.67
5.3.150.0140.05012.67
5.3.140.0120.03912.66
5.3.130.0250.06312.66
5.3.120.0130.04312.66
5.3.110.0110.04512.66
5.3.100.0120.04912.12
5.3.90.0140.04712.08
5.3.80.0180.05812.07
5.3.70.0100.04512.08
5.3.60.0100.04512.06
5.3.50.0180.04512.00
5.3.40.0100.04812.00
5.3.30.0120.03711.95
5.3.20.0120.04111.72
5.3.10.0150.05011.68
5.3.00.0110.04011.67

preferences:
144.05 ms | 1394 KiB | 7 Q