3v4l.org

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

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

End of function call_method

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.95 ms | 1398 KiB | 14 Q