3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PathController { public function get_route() { return Response::json(Cache::remember('route-point', 10, function() { foreach (array("Sprint", "Score", "Section") as $type) { $type_count = static::do_something($type); } })); } } $c = new PathController(); $c->do_something();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bqbKA
function name:  (null)
number of ops:  6
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $1      'PathController'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   17     3        INIT_METHOD_CALL                                         !0, 'do_something'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FbqbKA%3A7%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 1, Position 2 = 7
Branch analysis from position: 1
2 jumps found. (Code = 78) Position 1 = 2, Position 2 = 7
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 1
Branch analysis from position: 1
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/bqbKA
function name:  {closure}
number of ops:  9
compiled vars:  !0 = $type, !1 = $type_count
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E > > FE_RESET_R                                       $2      <array>, ->7
          1    > > FE_FETCH_R                                               $2, !0, ->7
    9     2    >   INIT_STATIC_METHOD_CALL                                  'do_something'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0  $3      
          5        ASSIGN                                                   !1, $3
    8     6      > JMP                                                      ->1
          7    >   FE_FREE                                                  $2
   11     8      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FbqbKA%3A7%240

Class PathController:
Function get_route:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bqbKA
function name:  get_route
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_STATIC_METHOD_CALL                                  'Response', 'json'
          1        INIT_STATIC_METHOD_CALL                                  'Cache', 'remember'
          2        SEND_VAL_EX                                              'route-point'
          3        SEND_VAL_EX                                              10
          4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FbqbKA%3A7%240'
   11     5        SEND_VAL_EX                                              ~0
          6        DO_FCALL                                      0  $1      
          7        SEND_VAR_NO_REF_EX                                       $1
          8        DO_FCALL                                      0  $2      
          9      > RETURN                                                   $2
   12    10*     > RETURN                                                   null

End of function get_route

End of class PathController.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.75 ms | 1395 KiB | 13 Q