3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Something { public function whatever(...$data) { var_dump($data); } } $some = new Something(); $stuff = ['name'=>'Product 1']; $some->whatever($stuff);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/irRAW
function name:  (null)
number of ops:  8
compiled vars:  !0 = $some, !1 = $stuff
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $2      'Something'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   11     3        ASSIGN                                                   !1, <array>
   12     4        INIT_METHOD_CALL                                         !0, 'whatever'
          5        SEND_VAR_EX                                              !1
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Class Something:
Function whatever:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/irRAW
function name:  whatever
number of ops:  5
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV_VARIADIC                                    !0      
    6     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    7     4      > RETURN                                                   null

End of function whatever

End of class Something.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.98 ms | 1386 KiB | 15 Q