3v4l.org

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

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

End of function manageusers

Class User: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.13 ms | 999 KiB | 15 Q