3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $input = <<<JSON {"imsi":"12345678901234567890","message":"ok"} JSON; $t = preg_replace('/"imsi":\s+"(.+)"/', '"imsi":$1', $input); var_dump($t);
based on iibou
Output for 5.3.21 - 7.3.0rc4
string(46) "{"imsi":"12345678901234567890","message":"ok"}"