3v4l.org

run code in 300+ PHP versions simultaneously
<?php header("Content-type: image/png"); $string = $_GET['text']; $im = imagecreatefrompng("images/button1.png"); $orange = imagecolorallocate($im, 220, 210, 60); $px = (imagesx($im) - 7.5 * strlen($string)) / 2; imagestring($im, 3, $px, 9, $string, $orange); imagepng($im); imagedestroy($im); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YBHbO
function name:  (null)
number of ops:  40
compiled vars:  !0 = $string, !1 = $im, !2 = $orange, !3 = $px
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'header'
          1        SEND_VAL                                                 'Content-type%3A+image%2Fpng'
          2        DO_ICALL                                                 
    3     3        FETCH_R                      global              ~5      '_GET'
          4        FETCH_DIM_R                                      ~6      ~5, 'text'
          5        ASSIGN                                                   !0, ~6
    4     6        INIT_FCALL_BY_NAME                                       'imagecreatefrompng'
          7        SEND_VAL_EX                                              'images%2Fbutton1.png'
          8        DO_FCALL                                      0  $8      
          9        ASSIGN                                                   !1, $8
    5    10        INIT_FCALL_BY_NAME                                       'imagecolorallocate'
         11        SEND_VAR_EX                                              !1
         12        SEND_VAL_EX                                              220
         13        SEND_VAL_EX                                              210
         14        SEND_VAL_EX                                              60
         15        DO_FCALL                                      0  $10     
         16        ASSIGN                                                   !2, $10
    6    17        INIT_FCALL_BY_NAME                                       'imagesx'
         18        SEND_VAR_EX                                              !1
         19        DO_FCALL                                      0  $12     
         20        STRLEN                                           ~13     !0
         21        MUL                                              ~14     ~13, 7.5
         22        SUB                                              ~15     $12, ~14
         23        DIV                                              ~16     ~15, 2
         24        ASSIGN                                                   !3, ~16
    7    25        INIT_FCALL_BY_NAME                                       'imagestring'
         26        SEND_VAR_EX                                              !1
         27        SEND_VAL_EX                                              3
         28        SEND_VAR_EX                                              !3
         29        SEND_VAL_EX                                              9
         30        SEND_VAR_EX                                              !0
         31        SEND_VAR_EX                                              !2
         32        DO_FCALL                                      0          
    8    33        INIT_FCALL_BY_NAME                                       'imagepng'
         34        SEND_VAR_EX                                              !1
         35        DO_FCALL                                      0          
    9    36        INIT_FCALL_BY_NAME                                       'imagedestroy'
         37        SEND_VAR_EX                                              !1
         38        DO_FCALL                                      0          
   10    39      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.38 ms | 1396 KiB | 15 Q