3v4l.org

run code in 300+ PHP versions simultaneously
<?php class G { public function a($b) { return $b; } public function c($d) { if (is_callable($d)) { echo $d('Hi'); } } } $e = ['A', 'a']; $f = new G; $f->c($e);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TNH0j
function name:  (null)
number of ops:  8
compiled vars:  !0 = $e, !1 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   ASSIGN                                                   !0, <array>
   16     1        NEW                                              $3      'G'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $3
   17     4        INIT_METHOD_CALL                                         !1, 'c'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Class G:
Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TNH0j
function name:  a
number of ops:  3
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1      > RETURN                                                   !0
    5     2*     > RETURN                                                   null

End of function a

Function c:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/TNH0j
function name:  c
number of ops:  10
compiled vars:  !0 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        INIT_FCALL                                               'is_callable'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $1      
          4      > JMPZ                                                     $1, ->9
    9     5    >   INIT_DYNAMIC_CALL                                        !0
          6        SEND_VAL_EX                                              'Hi'
          7        DO_FCALL                                      0  $2      
          8        ECHO                                                     $2
   11     9    > > RETURN                                                   null

End of function c

End of class G.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.2 ms | 1395 KiB | 15 Q