3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Container {}; $container = new Container();$container['users'] = function ($c) { return new Users($container);};
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z7Sco
function name:  (null)
number of ops:  7
compiled vars:  !0 = $container
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   NEW                                              $1      'Container'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FZ7Sco%3A6%240'
          4        ASSIGN_DIM                                               !0, 'users'
          5        OP_DATA                                                  ~5
          6      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FZ7Sco%3A6%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z7Sco
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $c, !1 = $container
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   RECV                                             !0      
          1        NEW                                              $2      'Users'
          2        SEND_VAR_EX                                              !1
          3        DO_FCALL                                      0          
          4      > RETURN                                                   $2
          5*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FZ7Sco%3A6%240

Class Container: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153 ms | 1393 KiB | 13 Q