Bugs & Features

3v4l.org - online PHP & HHVM shell, execute code in 100+ different versions!

<?php echo preg_replace('/(?=.)/u', '!', 'آرد'); //returns '!�!�!�!�!�!�'
Output for 4.3.0 - 4.3.4, 5.2.9 - 5.6.6, php7@20140507 - 20150301, hhvm-3.4.1 - 3.5.1
!�!�!�!�!�!�
Output for 5.2.0 - 5.2.8
Output for 4.3.5 - 5.0.5, 5.1.1 - 5.1.6
!آرد
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/i0V7Z on line 2
Process exited with code 255.