3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'Before' . "\n" ; $str=mb_strtolower('İstanbul'); for ($i = 0; $i < strlen($str); $i++) echo $str[$i] . " => " . ord($str[$i]) . "\n"; echo "\n" . 'After' . "\n" ; $str=mb_convert_case('İstanbul', MB_CASE_LOWER_SIMPLE) ; for ($i = 0; $i < strlen($str); $i++) echo $str[$i] . " => " . ord($str[$i]) . "\n";
Output for 8.2.0 - 8.2.29, 8.3.0 - 8.3.28, 8.4.1 - 8.4.14, 8.5.0
Before i => 105 � => 204 � => 135 s => 115 t => 116 a => 97 n => 110 b => 98 u => 117 l => 108 After i => 105 s => 115 t => 116 a => 97 n => 110 b => 98 u => 117 l => 108
Output for 8.4.15
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
Process exited with code 1.

preferences:
85.21 ms | 407 KiB | 5 Q