3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(array $bar) { $bar = new \Exception(); var_dump(func_get_args()); throw new \Exception(); } foo([], 132);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hv4FK
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'foo'
          1        SEND_VAL                                                 <array>
          2        SEND_VAL                                                 132
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/hv4FK
function name:  foo
number of ops:  12
compiled vars:  !0 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   RECV                                             !0      
          1        NEW                                              $1      'Exception'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
          4        INIT_FCALL                                               'var_dump'
          5        FUNC_GET_ARGS                                    ~4      
          6        SEND_VAL                                                 ~4
          7        DO_ICALL                                                 
          8        NEW                                              $6      'Exception'
          9        DO_FCALL                                      0          
         10      > THROW                                         0          $6
         11*     > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.9 ms | 1401 KiB | 16 Q