3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.68 ms | 939 KiB | 20 Q