3v4l.org

run code in 500+ PHP versions simultaneously
<?php $myString = '10:0{ "name":"John", "age":30, "car":null }24:0'; echo preg_replace('/.*?(\{.*?\}).*/', '$1', $myString);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/afN8B
function name:  (null)
number of ops:  5
compiled vars:  !0 = $myString
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, '10%3A0%7B+%22name%22%3A%22John%22%2C+%22age%22%3A30%2C+%22car%22%3Anull+%7D24%3A0'
    3     1        FRAMELESS_ICALL_3                preg_replace        ~2      '%2F.%2A%3F%28%5C%7B.%2A%3F%5C%7D%29.%2A%2F', '%241'
          2        OP_DATA                                                      !0
          3        ECHO                                                         ~2
          4      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
226.46 ms | 2579 KiB | 13 Q