3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test(){echo 'test';} $a = array( "my_func" => 'test' ); //check if there is some function or method if( is_callable( $a["my_func"] ) ) $a["my_func"]();
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/KegYs
function name:  (null)
number of ops:  10
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, <array>
   10     1        INIT_FCALL                                               'is_callable'
          2        FETCH_DIM_R                                      ~2      !0, 'my_func'
          3        SEND_VAL                                                 ~2
          4        DO_ICALL                                         $3      
          5      > JMPZ                                                     $3, ->9
          6    >   FETCH_DIM_R                                      ~4      !0, 'my_func'
          7        INIT_DYNAMIC_CALL                                        ~4
          8        DO_FCALL                                      0          
          9    > > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KegYs
function name:  test
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     'test'
          1      > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.32 ms | 1394 KiB | 15 Q