3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ [ 'name' => '1', 'price' => 3.08 ], [ 'name' => '2', 'price' => 5.78 ] ]; class forever { public function something(array ...$data){ var_dump($data); } } $thing = new forever(); $thing->something(...$data);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dvtvm
function name:  (null)
number of ops:  9
compiled vars:  !0 = $data, !1 = $thing
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   20     1        NEW                                              $3      'forever'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $3
   21     4        INIT_METHOD_CALL                                         !1, 'something'
          5        SEND_UNPACK                                              !0
          6        CHECK_UNDEF_ARGS                                         
          7        DO_FCALL                                      1          
          8      > RETURN                                                   1

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

End of function something

End of class forever.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.16 ms | 1394 KiB | 15 Q