3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $input = ' <img height="20" src="https://s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="" data-thumb="//i.ytimg.com/i/YfdidRxbB8Qhf0Nx7ioOYw/1.jpg" width="20" aria-hidden="true" >'; $input = preg_ireplace('#<img[^>]*data-thumb=#s', '<img alt="Thumbnail" src=', $input); echo $input;
based on sQIM1
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function preg_ireplace() in /in/l10MA:3 Stack trace: #0 {main} thrown in /in/l10MA on line 3
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Fatal error: Call to undefined function preg_ireplace() in /in/l10MA on line 3
Process exited with code 255.