3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ViewHelper { protected ReflectionProperty $class; public function __contruct(ReflectionProperty $class) { $this->class = $class; } protected function getListFields(mixed $object): array { $result = []; $properties = $class->getProperties(); foreach ($properties as $property) { $name = $property->getName(); $result [] = $name; } return $result; } public function escapeMetacharacters(string $text): string { return htmlspecialchars($text, ENT_QUOTES); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GFXlX
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   27     0  E > > RETURN                                                   1

Class ViewHelper:
Function __contruct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GFXlX
function name:  __contruct
number of ops:  4
compiled vars:  !0 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    9     1        ASSIGN_OBJ                                               'class'
          2        OP_DATA                                                  !0
   10     3      > RETURN                                                   null

End of function __contruct

Function getlistfields:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 13
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 13
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/GFXlX
function name:  getListFields
number of ops:  18
compiled vars:  !0 = $object, !1 = $result, !2 = $properties, !3 = $class, !4 = $property, !5 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
   14     1        ASSIGN                                                   !1, <array>
   15     2        INIT_METHOD_CALL                                         !3, 'getProperties'
          3        DO_FCALL                                      0  $7      
          4        ASSIGN                                                   !2, $7
   16     5      > FE_RESET_R                                       $9      !2, ->13
          6    > > FE_FETCH_R                                               $9, !4, ->13
   17     7    >   INIT_METHOD_CALL                                         !4, 'getName'
          8        DO_FCALL                                      0  $10     
          9        ASSIGN                                                   !5, $10
   18    10        ASSIGN_DIM                                               !1
         11        OP_DATA                                                  !5
   16    12      > JMP                                                      ->6
         13    >   FE_FREE                                                  $9
   20    14        VERIFY_RETURN_TYPE                                       !1
         15      > RETURN                                                   !1
   21    16*       VERIFY_RETURN_TYPE                                       
         17*     > RETURN                                                   null

End of function getlistfields

Function escapemetacharacters:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GFXlX
function name:  escapeMetacharacters
number of ops:  9
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   RECV                                             !0      
   25     1        INIT_FCALL                                               'htmlspecialchars'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 3
          4        DO_ICALL                                         $1      
          5        VERIFY_RETURN_TYPE                                       $1
          6      > RETURN                                                   $1
   26     7*       VERIFY_RETURN_TYPE                                       
          8*     > RETURN                                                   null

End of function escapemetacharacters

End of class ViewHelper.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.64 ms | 1002 KiB | 14 Q