3v4l.org

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

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

End of function bar

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.71 ms | 1394 KiB | 13 Q