3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cli->setHelperSet(new HelperSet([ 'em' => new EntityManagerHelper($container->em), 'db' => new ConnectionHelper($container->em->getConnection()), 'dialog' => new DialogHelper, ]));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IH1BW
function name:  (null)
number of ops:  23
compiled vars:  !0 = $cli, !1 = $container
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_METHOD_CALL                                         !0, 'setHelperSet'
          1        NEW                                              $2      'HelperSet'
    3     2        NEW                                              $3      'EntityManagerHelper'
          3        CHECK_FUNC_ARG                                           
          4        FETCH_OBJ_FUNC_ARG                               $4      !1, 'em'
          5        SEND_FUNC_ARG                                            $4
          6        DO_FCALL                                      0          
          7        INIT_ARRAY                                       ~6      $3, 'em'
    4     8        NEW                                              $7      'ConnectionHelper'
          9        FETCH_OBJ_R                                      ~8      !1, 'em'
         10        INIT_METHOD_CALL                                         ~8, 'getConnection'
         11        DO_FCALL                                      0  $9      
         12        SEND_VAR_NO_REF_EX                                       $9
         13        DO_FCALL                                      0          
         14        ADD_ARRAY_ELEMENT                                ~6      $7, 'db'
    5    15        NEW                                              $11     'DialogHelper'
         16        DO_FCALL                                      0          
         17        ADD_ARRAY_ELEMENT                                ~6      $11, 'dialog'
         18        SEND_VAL_EX                                              ~6
         19        DO_FCALL                                      0          
         20        SEND_VAR_NO_REF_EX                                       $2
         21        DO_FCALL                                      0          
    6    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.41 ms | 1394 KiB | 13 Q