3v4l.org

run code in 300+ PHP versions simultaneously
<?php function mergeImage($target, $imgurl, $data) { $img = imagecreates($imgurl); $w = imagesx($img); $h = imagesy($img); imagecopyresized($target, $img, $data['left'], $data['top'], 0, 0, $data['width'], $data['height'], $w, $h); imagedestroy($img); return $target; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YqRNq
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E > > RETURN                                                   1

Function mergeimage:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YqRNq
function name:  mergeImage
number of ops:  40
compiled vars:  !0 = $target, !1 = $imgurl, !2 = $data, !3 = $img, !4 = $w, !5 = $h
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    4     3        INIT_FCALL_BY_NAME                                       'imagecreates'
          4        SEND_VAR_EX                                              !1
          5        DO_FCALL                                      0  $6      
          6        ASSIGN                                                   !3, $6
    5     7        INIT_FCALL_BY_NAME                                       'imagesx'
          8        SEND_VAR_EX                                              !3
          9        DO_FCALL                                      0  $8      
         10        ASSIGN                                                   !4, $8
    6    11        INIT_FCALL_BY_NAME                                       'imagesy'
         12        SEND_VAR_EX                                              !3
         13        DO_FCALL                                      0  $10     
         14        ASSIGN                                                   !5, $10
    7    15        INIT_FCALL_BY_NAME                                       'imagecopyresized'
         16        SEND_VAR_EX                                              !0
         17        SEND_VAR_EX                                              !3
         18        CHECK_FUNC_ARG                                           
         19        FETCH_DIM_FUNC_ARG                               $12     !2, 'left'
         20        SEND_FUNC_ARG                                            $12
         21        CHECK_FUNC_ARG                                           
         22        FETCH_DIM_FUNC_ARG                               $13     !2, 'top'
         23        SEND_FUNC_ARG                                            $13
         24        SEND_VAL_EX                                              0
         25        SEND_VAL_EX                                              0
         26        CHECK_FUNC_ARG                                           
         27        FETCH_DIM_FUNC_ARG                               $14     !2, 'width'
         28        SEND_FUNC_ARG                                            $14
         29        CHECK_FUNC_ARG                                           
         30        FETCH_DIM_FUNC_ARG                               $15     !2, 'height'
         31        SEND_FUNC_ARG                                            $15
         32        SEND_VAR_EX                                              !4
         33        SEND_VAR_EX                                              !5
         34        DO_FCALL                                      0          
    8    35        INIT_FCALL_BY_NAME                                       'imagedestroy'
         36        SEND_VAR_EX                                              !3
         37        DO_FCALL                                      0          
    9    38      > RETURN                                                   !0
   10    39*     > RETURN                                                   null

End of function mergeimage

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.12 ms | 1399 KiB | 13 Q