3v4l.org

run code in 300+ PHP versions simultaneously
<?php header("Content-type: image/png"); // erstellen eines leeren Bildes mit 400px Breite und 300px H?he $bild = imagecreatetruecolor(400, 300); // Hintergrundfarbe erstellen imagecolorallocate($bild, 150, 150, 0); // Farben festlegen $farbe1 = imagecolorallocate($bild, 255, 0, 0); // Viereck zeichen // mit folgenden Kordinaten (x1, y1, x2, y2, Farbe); imagefilledrectangle ($bild, 20, 75, 350,250, $farbe1); // Ausgabe des Bildes imagepng($bild); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Q3C2u
function name:  (null)
number of ops:  33
compiled vars:  !0 = $bild, !1 = $farbe1
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                                              400
          5        SEND_VAL_EX                                              300
          6        DO_FCALL                                      0  $3      
          7        ASSIGN                                                   !0, $3
    6     8        INIT_FCALL_BY_NAME                                       'imagecolorallocate'
          9        SEND_VAR_EX                                              !0
         10        SEND_VAL_EX                                              150
         11        SEND_VAL_EX                                              150
         12        SEND_VAL_EX                                              0
         13        DO_FCALL                                      0          
    9    14        INIT_FCALL_BY_NAME                                       'imagecolorallocate'
         15        SEND_VAR_EX                                              !0
         16        SEND_VAL_EX                                              255
         17        SEND_VAL_EX                                              0
         18        SEND_VAL_EX                                              0
         19        DO_FCALL                                      0  $6      
         20        ASSIGN                                                   !1, $6
   13    21        INIT_FCALL_BY_NAME                                       'imagefilledrectangle'
         22        SEND_VAR_EX                                              !0
         23        SEND_VAL_EX                                              20
         24        SEND_VAL_EX                                              75
         25        SEND_VAL_EX                                              350
         26        SEND_VAL_EX                                              250
         27        SEND_VAR_EX                                              !1
         28        DO_FCALL                                      0          
   16    29        INIT_FCALL_BY_NAME                                       'imagepng'
         30        SEND_VAR_EX                                              !0
         31        DO_FCALL                                      0          
   17    32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.67 ms | 1396 KiB | 15 Q