3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo($n, $s, $o) { if ($n === 0) { throw new Exception("LEAK STUFF."); } foo($n-1, $s, $o); } class Key { private $key; function __construct($key) { $this->key = $key; } } $key_s = "HELLO WORLD"; $key_o = new Key("GOODBYE WORLD"); foo(3, $key_s, $key_o);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Abue1
function name:  (null)
number of ops:  11
compiled vars:  !0 = $key_s, !1 = $key_o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   ASSIGN                                                   !0, 'HELLO+WORLD'
   22     1        NEW                                              $3      'Key'
          2        SEND_VAL_EX                                              'GOODBYE+WORLD'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $3
   24     5        INIT_FCALL                                               'foo'
          6        SEND_VAL                                                 3
          7        SEND_VAR                                                 !0
          8        SEND_VAR                                                 !1
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Abue1
function name:  foo
number of ops:  16
compiled vars:  !0 = $n, !1 = $s, !2 = $o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    5     3        IS_IDENTICAL                                             !0, 0
          4      > JMPZ                                                     ~3, ->9
    6     5    >   NEW                                              $4      'Exception'
          6        SEND_VAL_EX                                              'LEAK+STUFF.'
          7        DO_FCALL                                      0          
          8      > THROW                                         0          $4
    9     9    >   INIT_FCALL_BY_NAME                                       'foo'
         10        SUB                                              ~6      !0, 1
         11        SEND_VAL_EX                                              ~6
         12        SEND_VAR_EX                                              !1
         13        SEND_VAR_EX                                              !2
         14        DO_FCALL                                      0          
   10    15      > RETURN                                                   null

End of function foo

Class Key:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Abue1
function name:  __construct
number of ops:  4
compiled vars:  !0 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   RECV                                             !0      
   17     1        ASSIGN_OBJ                                               'key'
          2        OP_DATA                                                  !0
   18     3      > RETURN                                                   null

End of function __construct

End of class Key.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.91 ms | 1399 KiB | 14 Q