3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Bv5Ej
function name:  (null)
number of ops:  25
compiled vars:  !0 = $loc, !1 = $payload
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CONST                                            'LOCATION_PRECISION', 7
    4     1        DECLARE_CONST                                            'LOCATION_LAT', '40.7591523'
    5     2        DECLARE_CONST                                            'LOCATION_LNG', '-73.9777136'
   16     3        DECLARE_CLASS                                            'location'
   53     4        NEW                                              $2      'Location'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $2
   54     7        INIT_METHOD_CALL                                         !0, 'getLat'
          8        DO_FCALL                                      0  $5      
          9        INIT_ARRAY                                       ~6      $5, 'lat'
         10        INIT_METHOD_CALL                                         !0, 'getLng'
         11        DO_FCALL                                      0  $7      
         12        ADD_ARRAY_ELEMENT                                ~6      $7, 'lng'
         13        ASSIGN                                                   !1, ~6
   55    14        INIT_METHOD_CALL                                         !0, 'recast'
         15        SEND_VAR_EX                                              !1
         16        DO_FCALL                                      0          
   57    17        INIT_FCALL                                               'print_r'
         18        SEND_VAR                                                 !1
         19        SEND_VAL                                                 1
         20        DO_ICALL                                         $10     
         21        CONCAT                                           ~11     '%0A', $10
         22        CONCAT                                           ~12     ~11, '%0A'
         23        ECHO                                                     ~12
         24      > RETURN                                                   1

Class Geocodes:
Function recast:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Bv5Ej
function name:  reCast
number of ops:  2
compiled vars:  !0 = $payload
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function recast

End of class Geocodes.

Class Location:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Bv5Ej
function name:  __construct
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   31     0  E >   FETCH_CONSTANT                                   ~1      'LOCATION_PRECISION'
          1        ASSIGN_OBJ                                               'precision'
          2        OP_DATA                                                  ~1
   32     3        FETCH_OBJ_W                                      $2      'recast'
          4        ASSIGN_DIM                                               $2, 'lat'
          5        OP_DATA                                                  <array>
   33     6        FETCH_OBJ_W                                      $4      'recast'
          7        ASSIGN_DIM                                               $4, 'lng'
          8        OP_DATA                                                  <array>
   34     9      > RETURN                                                   null

End of function __construct

Function recast:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 32
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 32
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 31
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 31
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
filename:       /in/Bv5Ej
function name:  recast
number of ops:  34
compiled vars:  !0 = $payload, !1 = $key, !2 = $api_key, !3 = $api_type
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   36     0  E >   RECV                                             !0      
   38     1        INIT_FCALL                                               'array_keys'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4      > FE_RESET_R                                       $5      $4, ->32
          5    > > FE_FETCH_R                                               $5, !1, ->32
   40     6    >   INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
   41     9        FETCH_OBJ_R                                      ~7      'recast'
         10        FETCH_DIM_R                                      ~8      ~7, !1
         11        FETCH_DIM_R                                      ~9      ~8, 'index'
         12        ASSIGN                                                   !2, ~9
   42    13        FETCH_OBJ_R                                      ~11     'recast'
         14        FETCH_DIM_R                                      ~12     ~11, !1
         15        FETCH_DIM_R                                      ~13     ~12, 'type'
         16        ASSIGN                                                   !3, ~13
   43    17        ARRAY_KEY_EXISTS                                 ~15     !2, !0
         18        BOOL_NOT                                         ~16     ~15
         19      > JMPZ                                                     ~16, ->31
   44    20    >   INIT_FCALL_BY_NAME                                       'bcadd'
         21        CHECK_FUNC_ARG                                           
         22        FETCH_DIM_FUNC_ARG                               $18     !0, !1
         23        SEND_FUNC_ARG                                            $18
         24        SEND_VAL_EX                                              0
         25        CHECK_FUNC_ARG                                           
         26        FETCH_OBJ_FUNC_ARG                               $19     'precision'
         27        SEND_FUNC_ARG                                            $19
         28        DO_FCALL                                      0  $20     
         29        ASSIGN_DIM                                               !0, !2
         30        OP_DATA                                                  $20
   38    31    > > JMP                                                      ->5
         32    >   FE_FREE                                                  $5
   46    33      > RETURN                                                   null

End of function recast

Function getlat:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Bv5Ej
function name:  getLat
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   48     0  E >   FETCH_OBJ_R                                      ~0      'lat'
          1      > RETURN                                                   ~0
          2*     > RETURN                                                   null

End of function getlat

Function getlng:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Bv5Ej
function name:  getLng
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   49     0  E >   FETCH_OBJ_R                                      ~0      'lng'
          1      > RETURN                                                   ~0
          2*     > RETURN                                                   null

End of function getlng

End of class Location.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
194.34 ms | 980 KiB | 16 Q