3v4l.org

run code in 300+ PHP versions simultaneously
<?php class abc{ public function getName(){ echo "My name is " , get_class($this) , "\n"; } } $obj = new abc(); try { $obj->getFirstName(); } catch(Error $ex) { var_dump($ex->getMessage()); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 6
Branch analysis from position: 6
2 jumps found. (Code = 107) Position 1 = 7, Position 2 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZbD7K
function name:  (null)
number of ops:  13
compiled vars:  !0 = $obj, !1 = $ex
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $2      'abc'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   10     3        INIT_METHOD_CALL                                         !0, 'getFirstName'
          4        DO_FCALL                                      0          
          5      > JMP                                                      ->12
   11     6  E > > CATCH                                       last         'Error'
   12     7    >   INIT_FCALL                                               'var_dump'
          8        INIT_METHOD_CALL                                         !1, 'getMessage'
          9        DO_FCALL                                      0  $6      
         10        SEND_VAR                                                 $6
         11        DO_ICALL                                                 
   13    12    > > RETURN                                                   1

Class abc:
Function getname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZbD7K
function name:  getName
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'My+name+is+'
          1        FETCH_THIS                                       ~0      
          2        GET_CLASS                                        ~1      ~0
          3        ECHO                                                     ~1
          4        ECHO                                                     '%0A'
    6     5      > RETURN                                                   null

End of function getname

End of class abc.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
134.76 ms | 1400 KiB | 15 Q