3v4l.org

run code in 300+ PHP versions simultaneously
<?php /*$class = new ReflectionClass('EngineException'); echo $class->getParentClass();*/ function f($a){ $a->method(); } try { // oops! } catch (EngineException $e) { echo "Exception: {$e->getMessage()}\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 1
Branch analysis from position: 1
2 jumps found. (Code = 107) Position 1 = 2, Position 2 = -2
Branch analysis from position: 2
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OdOCC
function name:  (null)
number of ops:  9
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E > > JMP                                                      ->8
   10     1  E > > CATCH                                       last         'EngineException'
   11     2    >   ROPE_INIT                                     3  ~3      'Exception%3A+'
          3        INIT_METHOD_CALL                                         !0, 'getMessage'
          4        DO_FCALL                                      0  $1      
          5        ROPE_ADD                                      1  ~3      ~3, $1
          6        ROPE_END                                      2  ~2      ~3, '%0A'
          7        ECHO                                                     ~2
   12     8    > > RETURN                                                   1

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

End of function f

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.29 ms | 1398 KiB | 13 Q