3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo_func($arg, Throwable $arg2) { echo "hello from $arg"; } $ex = new Exception("foo"); foo_func("world", $ex);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GAPKY
function name:  (null)
number of ops:  9
compiled vars:  !0 = $ex
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $1      'Exception'
          1        SEND_VAL_EX                                              'foo'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    9     4        INIT_FCALL                                               'foo_func'
          5        SEND_VAL                                                 'world'
          6        SEND_VAR                                                 !0
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Function foo_func:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GAPKY
function name:  foo_func
number of ops:  6
compiled vars:  !0 = $arg, !1 = $arg2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        NOP                                                      
          3        FAST_CONCAT                                      ~2      'hello+from+', !0
          4        ECHO                                                     ~2
    5     5      > RETURN                                                   null

End of function foo_func

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.29 ms | 1445 KiB | 14 Q