3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(is_numeric("32.00")); class foo { function get_flags($uid = NULL, $set=TRUE) { $flags = $this->get_metadata('flags', $uid); if($flags == FALSE){ return FALSE; } if($set){$this->flags = $flags;} return $flags; } function get_metadata($field, $uid) { print $field.$uid; } function __construct() { var_dump($this->get_flags(1, false)); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oFdQn
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'is_numeric'
          2        SEND_VAL                                                 '32.00'
          3        DO_ICALL                                         $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
   23     6      > RETURN                                                   1

Class foo:
Function get_flags:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/oFdQn
function name:  get_flags
number of ops:  15
compiled vars:  !0 = $uid, !1 = $set, !2 = $flags
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV_INIT                                        !0      null
          1        RECV_INIT                                        !1      <true>
    7     2        INIT_METHOD_CALL                                         'get_metadata'
          3        SEND_VAL_EX                                              'flags'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $3      
          6        ASSIGN                                                   !2, $3
    8     7        BOOL_NOT                                         ~5      !2
          8      > JMPZ                                                     ~5, ->10
    9     9    > > RETURN                                                   <false>
   11    10    > > JMPZ                                                     !1, ->13
         11    >   ASSIGN_OBJ                                               'flags'
         12        OP_DATA                                                  !2
   12    13    > > RETURN                                                   !2
   13    14*     > RETURN                                                   null

End of function get_flags

Function get_metadata:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oFdQn
function name:  get_metadata
number of ops:  5
compiled vars:  !0 = $field, !1 = $uid
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   16     2        CONCAT                                           ~2      !0, !1
          3        ECHO                                                     ~2
   18     4      > RETURN                                                   null

End of function get_metadata

Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oFdQn
function name:  __construct
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_METHOD_CALL                                         'get_flags'
          2        SEND_VAL_EX                                              1
          3        SEND_VAL_EX                                              <false>
          4        DO_FCALL                                      0  $0      
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                                 
   22     7      > RETURN                                                   null

End of function __construct

End of class foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.46 ms | 1392 KiB | 17 Q