3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo preg_replace('/(?=.)/u', '!', 'آرد'); //returns '!�!�!�!�!�!�'
Output for 5.5.27 - 5.5.35, 5.6.11 - 5.6.21, 7.0.0 - 7.0.6
!آ!ر!د
Output for 4.3.0 - 4.3.4, 5.2.9 - 5.5.26, 5.6.0 - 5.6.10, hhvm-3.10.0 - 3.12.0
!�!�!�!�!�!�
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
<br /> <b>Fatal error</b>: fatal flex scanner internal error--end of buffer missed in <b>/in/i0V7Z</b> on line <b>2</b><br />
Process exited with code 255.