3v4l.org

run code in 300+ PHP versions simultaneously
<?php $return = 'json'; print_r(json_decode( $json=json_encode(array("return" => $return, "success" => true)), true)); echo $json;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4mL41
function name:  (null)
number of ops:  16
compiled vars:  !0 = $return, !1 = $json
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'json'
    4     1        INIT_FCALL                                               'print_r'
          2        INIT_FCALL                                               'json_decode'
          3        INIT_FCALL                                               'json_encode'
          4        INIT_ARRAY                                       ~3      !0, 'return'
          5        ADD_ARRAY_ELEMENT                                ~3      <true>, 'success'
          6        SEND_VAL                                                 ~3
          7        DO_ICALL                                         $4      
          8        ASSIGN                                           ~5      !1, $4
          9        SEND_VAL                                                 ~5
         10        SEND_VAL                                                 <true>
         11        DO_ICALL                                         $6      
         12        SEND_VAR                                                 $6
         13        DO_ICALL                                                 
    5    14        ECHO                                                     !1
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.71 ms | 1394 KiB | 19 Q