3v4l.org

run code in 300+ PHP versions simultaneously
<?php header("Content-type: image/jpeg"); $imgPath = 'http://i.imgur.com/yS5hPLa.jpg'; $image = imagecreatefromjpeg($imgPath); $color = imagecolorallocate($image, 255, 255, 255); $string = "meow"; $fontSize = 3; $x = 115; $y = 185; imagestring($image, $fontSize, $x, $y, $string, $color); imagejpeg($image); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/v6SgB
function name:  (null)
number of ops:  31
compiled vars:  !0 = $imgPath, !1 = $image, !2 = $color, !3 = $string, !4 = $fontSize, !5 = $x, !6 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'header'
          1        SEND_VAL                                                 'Content-type%3A+image%2Fjpeg'
          2        DO_ICALL                                                 
    3     3        ASSIGN                                                   !0, 'http%3A%2F%2Fi.imgur.com%2FyS5hPLa.jpg'
    4     4        INIT_FCALL_BY_NAME                                       'imagecreatefromjpeg'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0  $9      
          7        ASSIGN                                                   !1, $9
    5     8        INIT_FCALL_BY_NAME                                       'imagecolorallocate'
          9        SEND_VAR_EX                                              !1
         10        SEND_VAL_EX                                              255
         11        SEND_VAL_EX                                              255
         12        SEND_VAL_EX                                              255
         13        DO_FCALL                                      0  $11     
         14        ASSIGN                                                   !2, $11
    6    15        ASSIGN                                                   !3, 'meow'
    7    16        ASSIGN                                                   !4, 3
    8    17        ASSIGN                                                   !5, 115
    9    18        ASSIGN                                                   !6, 185
   10    19        INIT_FCALL_BY_NAME                                       'imagestring'
         20        SEND_VAR_EX                                              !1
         21        SEND_VAR_EX                                              !4
         22        SEND_VAR_EX                                              !5
         23        SEND_VAR_EX                                              !6
         24        SEND_VAR_EX                                              !3
         25        SEND_VAR_EX                                              !2
         26        DO_FCALL                                      0          
   11    27        INIT_FCALL_BY_NAME                                       'imagejpeg'
         28        SEND_VAR_EX                                              !1
         29        DO_FCALL                                      0          
   12    30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.88 ms | 1395 KiB | 15 Q