3v4l.org

run code in 300+ PHP versions simultaneously
<?php $return = 'json'; print_r(json_decode( json_encode(array("return" => $return, "success" => true))));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Hj9T4
function name:  (null)
number of ops:  13
compiled vars:  !0 = $return
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                                       ~2      !0, 'return'
          5        ADD_ARRAY_ELEMENT                                ~2      <true>, 'success'
          6        SEND_VAL                                                 ~2
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                         $4      
         10        SEND_VAR                                                 $4
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.62 ms | 1394 KiB | 19 Q