3v4l.org

run code in 300+ PHP versions simultaneously
<?php function ImageTTFTextWithTracking($im, $size, $angle, $t, $x, $y, $color, $font, $text) { $numchar = strlen($text); for($i = 0; $i < $numchar; $i++) { # Assign character $char[$i] = substr($text, $i, 1); # Write character imagettftext($im, $size, $angle, ($x + $w + ($i * $t)), $y, $color, $font, $char[$i]); # Get width of character $width = imagettfbbox($size, $angle, $font, $char[$i]); $w = $w + $width[2]; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/685XN
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E > > RETURN                                                   1

Function imagettftextwithtracking:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 48
Branch analysis from position: 48
2 jumps found. (Code = 44) Position 1 = 50, Position 2 = 13
Branch analysis from position: 50
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 50, Position 2 = 13
Branch analysis from position: 50
Branch analysis from position: 13
filename:       /in/685XN
function name:  ImageTTFTextWithTracking
number of ops:  51
compiled vars:  !0 = $im, !1 = $size, !2 = $angle, !3 = $t, !4 = $x, !5 = $y, !6 = $color, !7 = $font, !8 = $text, !9 = $numchar, !10 = $i, !11 = $char, !12 = $w, !13 = $width
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
          4        RECV                                             !4      
          5        RECV                                             !5      
          6        RECV                                             !6      
          7        RECV                                             !7      
          8        RECV                                             !8      
    3     9        STRLEN                                           ~14     !8
         10        ASSIGN                                                   !9, ~14
    4    11        ASSIGN                                                   !10, 0
         12      > JMP                                                      ->48
    6    13    >   INIT_FCALL                                               'substr'
         14        SEND_VAR                                                 !8
         15        SEND_VAR                                                 !10
         16        SEND_VAL                                                 1
         17        DO_ICALL                                         $18     
         18        ASSIGN_DIM                                               !11, !10
         19        OP_DATA                                                  $18
    9    20        INIT_FCALL_BY_NAME                                       'imagettftext'
         21        SEND_VAR_EX                                              !0
         22        SEND_VAR_EX                                              !1
         23        SEND_VAR_EX                                              !2
         24        ADD                                              ~19     !4, !12
         25        MUL                                              ~20     !10, !3
         26        ADD                                              ~21     ~19, ~20
         27        SEND_VAL_EX                                              ~21
         28        SEND_VAR_EX                                              !5
         29        SEND_VAR_EX                                              !6
         30        SEND_VAR_EX                                              !7
         31        CHECK_FUNC_ARG                                           
         32        FETCH_DIM_FUNC_ARG                               $22     !11, !10
         33        SEND_FUNC_ARG                                            $22
         34        DO_FCALL                                      0          
   12    35        INIT_FCALL_BY_NAME                                       'imagettfbbox'
         36        SEND_VAR_EX                                              !1
         37        SEND_VAR_EX                                              !2
         38        SEND_VAR_EX                                              !7
         39        CHECK_FUNC_ARG                                           
         40        FETCH_DIM_FUNC_ARG                               $24     !11, !10
         41        SEND_FUNC_ARG                                            $24
         42        DO_FCALL                                      0  $25     
         43        ASSIGN                                                   !13, $25
   13    44        FETCH_DIM_R                                      ~27     !13, 2
         45        ADD                                              ~28     !12, ~27
         46        ASSIGN                                                   !12, ~28
    4    47        PRE_INC                                                  !10
         48    >   IS_SMALLER                                               !10, !9
         49      > JMPNZ                                                    ~31, ->13
   15    50    > > RETURN                                                   null

End of function imagettftextwithtracking

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.39 ms | 1392 KiB | 15 Q