3v4l.org

run code in 300+ PHP versions simultaneously
<?php class User { } function doUserStuff(User ...$users) { var_dump($users); } $users = [new User]; doUserStuff($users);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9TSTs
function name:  (null)
number of ops:  8
compiled vars:  !0 = $users
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $1      'User'
          1        DO_FCALL                                      0          
          2        INIT_ARRAY                                       ~3      $1
          3        ASSIGN                                                   !0, ~3
   14     4        INIT_FCALL                                               'douserstuff'
          5        SEND_VAR                                                 !0
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Function douserstuff:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9TSTs
function name:  doUserStuff
number of ops:  5
compiled vars:  !0 = $users
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV_VARIADIC                                    !0      
   10     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
   11     4      > RETURN                                                   null

End of function douserstuff

Class User: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.86 ms | 1401 KiB | 16 Q