3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('Content-Type: image/png'); $im = imagecreatetruecolor(290, 60); $grey = imagecolorallocate($im, 200, 200, 200); $black = imagecolorallocate($im, 0, 0, 0); imagefilledrectangle($im, 0, 0, 289, 59, $grey); $font = 'seguisym.ttf'; $font = realpath($font); //&#127744; is the unicode html entity for a cyclone. It is under 'Miscellaneous Symbols And Pictographs'. $text = "&#127744; is a cyclone!"; imagettftext($im, 20, 0, 5, 22, $black, $font, $text); //&#9924; is the unicode html entity for a snowman. It is under 'Miscellaneous Symbols'. $text = "&#9924; is a snowman!"; imagettftext($im, 20, 0, 5, 52, $black, $font, $text); imagepng($im); imagedestroy($im);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8BLZc
function name:  (null)
number of ops:  64
compiled vars:  !0 = $im, !1 = $grey, !2 = $black, !3 = $font, !4 = $text
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                                                 
    4     3        INIT_FCALL_BY_NAME                                       'imagecreatetruecolor'
          4        SEND_VAL_EX                                              290
          5        SEND_VAL_EX                                              60
          6        DO_FCALL                                      0  $6      
          7        ASSIGN                                                   !0, $6
    6     8        INIT_FCALL_BY_NAME                                       'imagecolorallocate'
          9        SEND_VAR_EX                                              !0
         10        SEND_VAL_EX                                              200
         11        SEND_VAL_EX                                              200
         12        SEND_VAL_EX                                              200
         13        DO_FCALL                                      0  $8      
         14        ASSIGN                                                   !1, $8
    7    15        INIT_FCALL_BY_NAME                                       'imagecolorallocate'
         16        SEND_VAR_EX                                              !0
         17        SEND_VAL_EX                                              0
         18        SEND_VAL_EX                                              0
         19        SEND_VAL_EX                                              0
         20        DO_FCALL                                      0  $10     
         21        ASSIGN                                                   !2, $10
    8    22        INIT_FCALL_BY_NAME                                       'imagefilledrectangle'
         23        SEND_VAR_EX                                              !0
         24        SEND_VAL_EX                                              0
         25        SEND_VAL_EX                                              0
         26        SEND_VAL_EX                                              289
         27        SEND_VAL_EX                                              59
         28        SEND_VAR_EX                                              !1
         29        DO_FCALL                                      0          
   10    30        ASSIGN                                                   !3, 'seguisym.ttf'
   11    31        INIT_FCALL                                               'realpath'
         32        SEND_VAR                                                 !3
         33        DO_ICALL                                         $14     
         34        ASSIGN                                                   !3, $14
   14    35        ASSIGN                                                   !4, '%26%23127744%3B+is+a+cyclone%21'
   15    36        INIT_FCALL_BY_NAME                                       'imagettftext'
         37        SEND_VAR_EX                                              !0
         38        SEND_VAL_EX                                              20
         39        SEND_VAL_EX                                              0
         40        SEND_VAL_EX                                              5
         41        SEND_VAL_EX                                              22
         42        SEND_VAR_EX                                              !2
         43        SEND_VAR_EX                                              !3
         44        SEND_VAR_EX                                              !4
         45        DO_FCALL                                      0          
   18    46        ASSIGN                                                   !4, '%26%239924%3B+is+a+snowman%21'
   19    47        INIT_FCALL_BY_NAME                                       'imagettftext'
         48        SEND_VAR_EX                                              !0
         49        SEND_VAL_EX                                              20
         50        SEND_VAL_EX                                              0
         51        SEND_VAL_EX                                              5
         52        SEND_VAL_EX                                              52
         53        SEND_VAR_EX                                              !2
         54        SEND_VAR_EX                                              !3
         55        SEND_VAR_EX                                              !4
         56        DO_FCALL                                      0          
   21    57        INIT_FCALL_BY_NAME                                       'imagepng'
         58        SEND_VAR_EX                                              !0
         59        DO_FCALL                                      0          
   22    60        INIT_FCALL_BY_NAME                                       'imagedestroy'
         61        SEND_VAR_EX                                              !0
         62        DO_FCALL                                      0          
         63      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.87 ms | 1400 KiB | 17 Q