3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $apiResultJSON = 'asdfasdfasdfasdf -sharpen 5x1 asdfasdfasdfasdfimages295472source1879420.jpg asdfasdf -sharpen 0x0 '; $apiResultJSON = preg_replace('/.*(\-sharpen [0-9]x[0-9]).*/', "", $apiResultJSON); var_dump($apiResultJSON);
based on Fr3Mj
Output for 4.3.0 - 7.2.0
string(0) ""