3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = "test"; $contact = "Test Contact"; $email = "test@testing.comm"; $phone = "12345678"; $obj = new stdClass(); $obj->id = "5f4e3913035190c04f69e83de9798019"; $obj->Type = "0"; $obj->Name = $name; $obj->Contact = $contact; $obj->Email = $email; $obj->Phone = $phone; $obj->Cellular = $phone; $obj->Address = "הרחוב שלי 23"; $obj->City = "תל אביב"; $obj->Zip = "11233"; $obj->Comments = "הערות יתקבלו בברכה"; $obj2 = new stdClass(); $obj2->NewAccount = $obj; $data = json_encode($obj2); function json_encode_unicode($data) { return preg_replace_callback('/(?<!\\\\)\\\\u([0-9a-f]{4})/i', function ($m) { $d = pack("H*", $m[1]); $r = mb_convert_encoding($d, "UTF8", "UTF-16BE"); return $r!=="?" && $r!=="" ? $r : $m[0]; }, json_encode($data) ); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ALKNa
function name:  (null)
number of ops:  39
compiled vars:  !0 = $name, !1 = $contact, !2 = $email, !3 = $phone, !4 = $obj, !5 = $obj2, !6 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'test'
    3     1        ASSIGN                                                   !1, 'Test+Contact'
    4     2        ASSIGN                                                   !2, 'test%40testing.comm'
    5     3        ASSIGN                                                   !3, '12345678'
    7     4        NEW                                              $11     'stdClass'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !4, $11
    8     7        ASSIGN_OBJ                                               !4, 'id'
          8        OP_DATA                                                  '5f4e3913035190c04f69e83de9798019'
    9     9        ASSIGN_OBJ                                               !4, 'Type'
         10        OP_DATA                                                  '0'
   10    11        ASSIGN_OBJ                                               !4, 'Name'
         12        OP_DATA                                                  !0
   11    13        ASSIGN_OBJ                                               !4, 'Contact'
         14        OP_DATA                                                  !1
   12    15        ASSIGN_OBJ                                               !4, 'Email'
         16        OP_DATA                                                  !2
   13    17        ASSIGN_OBJ                                               !4, 'Phone'
         18        OP_DATA                                                  !3
   14    19        ASSIGN_OBJ                                               !4, 'Cellular'
         20        OP_DATA                                                  !3
   15    21        ASSIGN_OBJ                                               !4, 'Address'
         22        OP_DATA                                                  '%D7%94%D7%A8%D7%97%D7%95%D7%91+%D7%A9%D7%9C%D7%99+23'
   16    23        ASSIGN_OBJ                                               !4, 'City'
         24        OP_DATA                                                  '%D7%AA%D7%9C+%D7%90%D7%91%D7%99%D7%91'
   17    25        ASSIGN_OBJ                                               !4, 'Zip'
         26        OP_DATA                                                  '11233'
   18    27        ASSIGN_OBJ                                               !4, 'Comments'
         28        OP_DATA                                                  '%D7%94%D7%A2%D7%A8%D7%95%D7%AA+%D7%99%D7%AA%D7%A7%D7%91%D7%9C%D7%95+%D7%91%D7%91%D7%A8%D7%9B%D7%94'
   20    29        NEW                                              $25     'stdClass'
         30        DO_FCALL                                      0          
         31        ASSIGN                                                   !5, $25
   22    32        ASSIGN_OBJ                                               !5, 'NewAccount'
         33        OP_DATA                                                  !4
   23    34        INIT_FCALL                                               'json_encode'
         35        SEND_VAR                                                 !5
         36        DO_ICALL                                         $29     
         37        ASSIGN                                                   !6, $29
   33    38      > RETURN                                                   1

Function json_encode_unicode:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ALKNa
function name:  json_encode_unicode
number of ops:  12
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   RECV                                             !0      
   26     1        INIT_FCALL                                               'preg_replace_callback'
          2        SEND_VAL                                                 '%2F%28%3F%3C%21%5C%5C%29%5C%5Cu%28%5B0-9a-f%5D%7B4%7D%29%2Fi'
   27     3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FALKNa%3A27%240'
   31     4        SEND_VAL                                                 ~1
          5        INIT_FCALL                                               'json_encode'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $2      
          8        SEND_VAR                                                 $2
          9        DO_ICALL                                         $3      
         10      > RETURN                                                   $3
   33    11*     > RETURN                                                   null

End of function json_encode_unicode

Function %00%7Bclosure%7D%2Fin%2FALKNa%3A27%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/ALKNa
function name:  {closure}
number of ops:  24
compiled vars:  !0 = $m, !1 = $d, !2 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   27     0  E >   RECV                                             !0      
   28     1        INIT_FCALL                                               'pack'
          2        SEND_VAL                                                 'H%2A'
          3        FETCH_DIM_R                                      ~3      !0, 1
          4        SEND_VAL                                                 ~3
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
   29     7        INIT_FCALL                                               'mb_convert_encoding'
          8        SEND_VAR                                                 !1
          9        SEND_VAL                                                 'UTF8'
         10        SEND_VAL                                                 'UTF-16BE'
         11        DO_ICALL                                         $6      
         12        ASSIGN                                                   !2, $6
   30    13        IS_NOT_IDENTICAL                                 ~8      !2, '%3F'
         14      > JMPZ_EX                                          ~8      ~8, ->17
         15    >   IS_NOT_IDENTICAL                                 ~9      !2, ''
         16        BOOL                                             ~8      ~9
         17    > > JMPZ                                                     ~8, ->20
         18    >   QM_ASSIGN                                        ~10     !2
         19      > JMP                                                      ->22
         20    >   FETCH_DIM_R                                      ~11     !0, 0
         21        QM_ASSIGN                                        ~10     ~11
         22    > > RETURN                                                   ~10
   31    23*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FALKNa%3A27%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.77 ms | 1404 KiB | 21 Q