3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = '{"registerDetails":"{\"accountName\":\"gsyau\",\"accountNumber\":\"168454\",\"addressUser\":\"test\",\"bankId\":1,\"selectedCityId\":1,\"emergencyName\":\"test\",\"emergencyNumber\":\"0146542346\",\"education\":[{\"certificatePicture\":{\"body\":{},\"headers\":{\"namesAndValues\":[\"Content-Disposition\",\"form-data; name\\u003d\\\"certificateFile\\\"; filename\\u003d\\\"2022-11-29-21-18-35-294.jpg\\\"\"]}},\"grade\":\"test\",\"educationLvl\":\"Doctoral (PHD) or Equivalent\",\"endEducation\":\"Oct 2022\",\"id\":8,\"institutionName\":\"test\",\"isEducationExpandable\":false,\"startEducation\":\"Aug 2022\"}],\"skill\":[{\"id\":7},{\"id\":9}],\"work\":[{\"companyName\":\"test\",\"jobEndDate\":\"Oct 2022\",\"isCurrentlyWorkHere\":false,\"isJobExpand\":false,\"jobPosition\":\"testtest\",\"jobScope\":\"test\",\"jobTitle\":\"test\",\"jobStartDate\":\"Aug 2022\"}],\"phoneUser\":\"014654264\",\"postCode\":\"68100\",\"selectedStateId\":1}"}'; $fixed = preg_replace('/\\\\u003d\\\\\\\\(.*?)\\\\\\\\/', '=\\\\\\\\\\\\$1\\\\\\\\\\\\', $obj); var_export( json_decode(json_decode($fixed)->registerDetails) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7H3KQ
function name:  (null)
number of ops:  18
compiled vars:  !0 = $obj, !1 = $fixed
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%22registerDetails%22%3A%22%7B%5C%22accountName%5C%22%3A%5C%22gsyau%5C%22%2C%5C%22accountNumber%5C%22%3A%5C%22168454%5C%22%2C%5C%22addressUser%5C%22%3A%5C%22test%5C%22%2C%5C%22bankId%5C%22%3A1%2C%5C%22selectedCityId%5C%22%3A1%2C%5C%22emergencyName%5C%22%3A%5C%22test%5C%22%2C%5C%22emergencyNumber%5C%22%3A%5C%220146542346%5C%22%2C%5C%22education%5C%22%3A%5B%7B%5C%22certificatePicture%5C%22%3A%7B%5C%22body%5C%22%3A%7B%7D%2C%5C%22headers%5C%22%3A%7B%5C%22namesAndValues%5C%22%3A%5B%5C%22Content-Disposition%5C%22%2C%5C%22form-data%3B+name%5Cu003d%5C%5C%22certificateFile%5C%5C%22%3B+filename%5Cu003d%5C%5C%222022-11-29-21-18-35-294.jpg%5C%5C%22%5C%22%5D%7D%7D%2C%5C%22grade%5C%22%3A%5C%22test%5C%22%2C%5C%22educationLvl%5C%22%3A%5C%22Doctoral+%28PHD%29+or+Equivalent%5C%22%2C%5C%22endEducation%5C%22%3A%5C%22Oct+2022%5C%22%2C%5C%22id%5C%22%3A8%2C%5C%22institutionName%5C%22%3A%5C%22test%5C%22%2C%5C%22isEducationExpandable%5C%22%3Afalse%2C%5C%22startEducation%5C%22%3A%5C%22Aug+2022%5C%22%7D%5D%2C%5C%22skill%5C%22%3A%5B%7B%5C%22id%5C%22%3A7%7D%2C%7B%5C%22id%5C%22%3A9%7D%5D%2C%5C%22work%5C%22%3A%5B%7B%5C%22companyName%5C%22%3A%5C%22test%5C%22%2C%5C%22jobEndDate%5C%22%3A%5C%22Oct+2022%5C%22%2C%5C%22isCurrentlyWorkHere%5C%22%3Afalse%2C%5C%22isJobExpand%5C%22%3Afalse%2C%5C%22jobPosition%5C%22%3A%5C%22testtest%5C%22%2C%5C%22jobScope%5C%22%3A%5C%22test%5C%22%2C%5C%22jobTitle%5C%22%3A%5C%22test%5C%22%2C%5C%22jobStartDate%5C%22%3A%5C%22Aug+2022%5C%22%7D%5D%2C%5C%22phoneUser%5C%22%3A%5C%22014654264%5C%22%2C%5C%22postCode%5C%22%3A%5C%2268100%5C%22%2C%5C%22selectedStateId%5C%22%3A1%7D%22%7D'
    5     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5C%5Cu003d%5C%5C%5C%5C%28.%2A%3F%29%5C%5C%5C%5C%2F'
          3        SEND_VAL                                                 '%3D%5C%5C%5C%5C%5C%5C%241%5C%5C%5C%5C%5C%5C'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
    7     7        INIT_FCALL                                               'var_export'
    8     8        INIT_FCALL                                               'json_decode'
          9        INIT_FCALL                                               'json_decode'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $5      
         12        FETCH_OBJ_R                                      ~6      $5, 'registerDetails'
         13        SEND_VAL                                                 ~6
         14        DO_ICALL                                         $7      
         15        SEND_VAR                                                 $7
    7    16        DO_ICALL                                                 
    9    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.28 ms | 1005 KiB | 16 Q