3v4l.org

run code in 500+ PHP versions simultaneously
<?php $fn = 'Liz & Noël'; $ln = 'John-Evan’s 2nd'; function process( $str ) { $str = iconv('utf-8', 'us-ascii//TRANSLIT', $str); $str = strtolower($str); return preg_replace('~[^A-Za-z]+~u', '', $str); } echo process($fn) . '-' . process($ln);
Output for 8.5.1 - 8.5.3
Fatal error: Uncaught Error: Call to undefined function iconv() in /in/mBMZl:8 Stack trace: #0 /in/mBMZl(13): process('Liz & No\xC3\xABl') #1 {main} thrown in /in/mBMZl on line 8
Process exited with code 255.
Output for 8.0.1 - 8.0.30, 8.1.0 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0
liznol-johnevansnd

preferences:
92.83 ms | 1100 KiB | 4 Q