3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ocType = new stdClass; $cmsTag = new stdClass; $cmsTag = getXstImage($cmsTag); if(!function_exists("getXstImage")){ function getXstImage($cmsTag){ global $cmsTag; // build class containing all data necessary to display image // therefor the image dimensions have to be determined if (0 < strlen($cmsTag->tag)) { $clientConfig = cRegistry::getClientConfig(cRegistry::getClientId()); $filename = str_replace($clientConfig["upl"]["htmlpath"], $clientConfig["upl"]["path"], $cmsTag->tag); list($imageWidth, $imageHeight) = getimagesize($filename); $image = new stdClass(); $image->src = $cmsTag->tag; $image->alt = $cmsTag->desc; $image->width = $imageWidth; $image->height = $imageHeight; $image->css = $css_class; } else { $image = NULL; } return $image; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 16
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/GE5Vr
function name:  (null)
number of ops:  17
compiled vars:  !0 = $ocType, !1 = $cmsTag
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    4     3        NEW                                              $5      'stdClass'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
    5     6        INIT_FCALL_BY_NAME                                       'getXstImage'
          7        SEND_VAR_EX                                              !1
          8        DO_FCALL                                      0  $8      
          9        ASSIGN                                                   !1, $8
    7    10        INIT_FCALL                                               'function_exists'
         11        SEND_VAL                                                 'getXstImage'
         12        DO_ICALL                                         $10     
         13        BOOL_NOT                                         ~11     $10
         14      > JMPZ                                                     ~11, ->16
    8    15    >   DECLARE_FUNCTION                                         'getxstimage'
   27    16    > > RETURN                                                   1

Function %00getxstimage%2Fin%2FGE5Vr%3A8%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 47
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 48
Branch analysis from position: 48
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 47
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GE5Vr
function name:  getXstImage
number of ops:  50
compiled vars:  !0 = $cmsTag, !1 = $clientConfig, !2 = $filename, !3 = $imageWidth, !4 = $imageHeight, !5 = $image, !6 = $css_class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
    9     1        BIND_GLOBAL                                              !0, 'cmsTag'
   12     2        FETCH_OBJ_R                                      ~7      !0, 'tag'
          3        STRLEN                                           ~8      ~7
          4        IS_SMALLER                                               0, ~8
          5      > JMPZ                                                     ~9, ->47
   13     6    >   INIT_STATIC_METHOD_CALL                                  'cRegistry', 'getClientConfig'
          7        INIT_STATIC_METHOD_CALL                                  'cRegistry', 'getClientId'
          8        DO_FCALL                                      0  $10     
          9        SEND_VAR_NO_REF_EX                                       $10
         10        DO_FCALL                                      0  $11     
         11        ASSIGN                                                   !1, $11
   14    12        INIT_FCALL                                               'str_replace'
         13        FETCH_DIM_R                                      ~13     !1, 'upl'
         14        FETCH_DIM_R                                      ~14     ~13, 'htmlpath'
         15        SEND_VAL                                                 ~14
         16        FETCH_DIM_R                                      ~15     !1, 'upl'
         17        FETCH_DIM_R                                      ~16     ~15, 'path'
         18        SEND_VAL                                                 ~16
         19        FETCH_OBJ_R                                      ~17     !0, 'tag'
         20        SEND_VAL                                                 ~17
         21        DO_ICALL                                         $18     
         22        ASSIGN                                                   !2, $18
   15    23        INIT_FCALL                                               'getimagesize'
         24        SEND_VAR                                                 !2
         25        DO_ICALL                                         $20     
         26        FETCH_LIST_R                                     $21     $20, 0
         27        ASSIGN                                                   !3, $21
         28        FETCH_LIST_R                                     $23     $20, 1
         29        ASSIGN                                                   !4, $23
         30        FREE                                                     $20
   16    31        NEW                                              $25     'stdClass'
         32        DO_FCALL                                      0          
         33        ASSIGN                                                   !5, $25
   17    34        FETCH_OBJ_R                                      ~29     !0, 'tag'
         35        ASSIGN_OBJ                                               !5, 'src'
         36        OP_DATA                                                  ~29
   18    37        FETCH_OBJ_R                                      ~31     !0, 'desc'
         38        ASSIGN_OBJ                                               !5, 'alt'
         39        OP_DATA                                                  ~31
   19    40        ASSIGN_OBJ                                               !5, 'width'
         41        OP_DATA                                                  !3
   20    42        ASSIGN_OBJ                                               !5, 'height'
         43        OP_DATA                                                  !4
   21    44        ASSIGN_OBJ                                               !5, 'css'
         45        OP_DATA                                                  !6
         46      > JMP                                                      ->48
   23    47    >   ASSIGN                                                   !5, null
   25    48    > > RETURN                                                   !5
   26    49*     > RETURN                                                   null

End of function %00getxstimage%2Fin%2FGE5Vr%3A8%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.09 ms | 1400 KiB | 19 Q