3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr = [ 'recipient' => [ 'address1' => '19749 Dearborn St', 'city' => 'Chatsworth', 'country_code' => 'US', 'state_code' => 'CA', 'zip' => 91311 ], 'items' => [ [ 'quantity' => 1, 'variant_id' => 2 ], [ 'quantity' => 5, 'variant_id' => 202 ] ] ]; echo $jsonString = json_encode($arr, JSON_PRETTY_PRINT);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/O1Cit
function name:  (null)
number of ops:  8
compiled vars:  !0 = $arr, !1 = $jsonString
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   22     1        INIT_FCALL                                                   'json_encode'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     128
          4        DO_ICALL                                             $3      
          5        ASSIGN                                               ~4      !1, $3
          6        ECHO                                                         ~4
          7      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
229.86 ms | 2312 KiB | 14 Q