3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = '{},\"employees\":{},\"idIwant\":{\"2545\":{\"attributes\":{\"offset\":9855,'; echo preg_match('~\Q\"idIwant\":{\"\E\K\d+~', $string, $out) ? $out[0] : 'bonk';

preferences:
66.18 ms | 1495 KiB | 5 Q