3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Ettore; use Pimple\Container; use Pimple\ServiceProviderInterface; class Ettore { public static function fromServiceProviders(array $providers) : Ettore { $pimple = new Container(); array_walk($providers, function(ServiceProviderInterface $provider, $i, Container $pimple) { $pimple->register($provider); }, $pimple); return new static(new App\App(new App\ServiceContainer($pimple))); } public function test() { echo 'Ok'; } } $e = new Ettore(); $e->test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jTZdn
function name:  (null)
number of ops:  6
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   NEW                                              $1      'Ettore%5CEttore'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   24     3        INIT_METHOD_CALL                                         !0, 'test'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Function %00ettore%5C%7Bclosure%7D%2Fin%2FjTZdn%3A11%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jTZdn
function name:  Ettore\{closure}
number of ops:  7
compiled vars:  !0 = $provider, !1 = $i, !2 = $pimple
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
   12     3        INIT_METHOD_CALL                                         !2, 'register'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0          
   13     6      > RETURN                                                   null

End of function %00ettore%5C%7Bclosure%7D%2Fin%2FjTZdn%3A11%240

Class Ettore\Ettore:
Function fromserviceproviders:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jTZdn
function name:  fromServiceProviders
number of ops:  23
compiled vars:  !0 = $providers, !1 = $pimple
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   10     1        NEW                                              $2      'Pimple%5CContainer'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $2
   11     4        INIT_NS_FCALL_BY_NAME                                    'Ettore%5Carray_walk'
          5        SEND_VAR_EX                                              !0
          6        DECLARE_LAMBDA_FUNCTION                                  '%00ettore%5C%7Bclosure%7D%2Fin%2FjTZdn%3A11%240'
   13     7        SEND_VAL_EX                                              ~5
   11     8        SEND_VAR_EX                                              !1
          9        DO_FCALL                                      0          
   14    10        NEW                          static              $7      
         11        NEW                                              $8      'Ettore%5CApp%5CApp'
         12        NEW                                              $9      'Ettore%5CApp%5CServiceContainer'
         13        SEND_VAR_EX                                              !1
         14        DO_FCALL                                      0          
         15        SEND_VAR_NO_REF_EX                                       $9
         16        DO_FCALL                                      0          
         17        SEND_VAR_NO_REF_EX                                       $8
         18        DO_FCALL                                      0          
         19        VERIFY_RETURN_TYPE                                       $7
         20      > RETURN                                                   $7
   15    21*       VERIFY_RETURN_TYPE                                       
         22*     > RETURN                                                   null

End of function fromserviceproviders

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jTZdn
function name:  test
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   ECHO                                                     'Ok'
   19     1      > RETURN                                                   null

End of function test

End of class Ettore\Ettore.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.45 ms | 1400 KiB | 15 Q