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 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 8
Branch analysis from position: 8
2 jumps found. (Code = 107) Position 1 = 9, Position 2 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nt5Ls
function name:  (null)
number of ops:  16
compiled vars:  !0 = $class, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'ReflectionClass'
          1        SEND_VAL_EX                                              'EngineException'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    4     4        INIT_METHOD_CALL                                         !0, 'getParentClass'
          5        DO_FCALL                                      0  $5      
          6        ECHO                                                     $5
    8     7      > JMP                                                      ->15
   10     8  E > > CATCH                                       last         'EngineException'
   11     9    >   ROPE_INIT                                     3  ~8      'Exception%3A+'
         10        INIT_METHOD_CALL                                         !1, 'getMessage'
         11        DO_FCALL                                      0  $6      
         12        ROPE_ADD                                      1  ~8      ~8, $6
         13        ROPE_END                                      2  ~7      ~8, '%0A'
         14        ECHO                                                     ~7
   12    15    > > RETURN                                                   1

Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nt5Ls
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:
178.53 ms | 1394 KiB | 13 Q