3v4l.org

run code in 300+ PHP versions simultaneously
<?php header("Content-Type: image/png"); $img = @imagecreate(900, 900) or die("Cannot Initialize new GD image stream"); $background_color = imagecolorallocate($img, 255, 255, 255); $red = imagecolorallocate($img, 255, 0, 0); for($i=0;$i<=360;$i+=10) { $x = round(cos($i)*400)+450; $y = round(sin($i)*400)+450; imagefilledellipse($img, $x, $y, 3, 3, $red); } imagepng($img); imagedestroy($img);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 56
Branch analysis from position: 56
2 jumps found. (Code = 44) Position 1 = 58, Position 2 = 29
Branch analysis from position: 58
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 58, Position 2 = 29
Branch analysis from position: 58
Branch analysis from position: 29
filename:       /in/uQ4cI
function name:  (null)
number of ops:  65
compiled vars:  !0 = $img, !1 = $background_color, !2 = $red, !3 = $i, !4 = $x, !5 = $y
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        BEGIN_SILENCE                                    ~7      
          4        INIT_FCALL_BY_NAME                                       'imagecreate'
          5        SEND_VAL_EX                                              900
          6        SEND_VAL_EX                                              900
          7        DO_FCALL                                      0  $8      
          8        END_SILENCE                                              ~7
          9        ASSIGN                                           ~9      !0, $8
         10      > JMPNZ_EX                                         ~9      ~9, ->13
    4    11    > > EXIT                                                     'Cannot+Initialize+new+GD+image+stream'
         12*       BOOL                                             ~9      <true>
    5    13    >   INIT_FCALL_BY_NAME                                       'imagecolorallocate'
         14        SEND_VAR_EX                                              !0
         15        SEND_VAL_EX                                              255
         16        SEND_VAL_EX                                              255
         17        SEND_VAL_EX                                              255
         18        DO_FCALL                                      0  $10     
         19        ASSIGN                                                   !1, $10
    6    20        INIT_FCALL_BY_NAME                                       'imagecolorallocate'
         21        SEND_VAR_EX                                              !0
         22        SEND_VAL_EX                                              255
         23        SEND_VAL_EX                                              0
         24        SEND_VAL_EX                                              0
         25        DO_FCALL                                      0  $12     
         26        ASSIGN                                                   !2, $12
    7    27        ASSIGN                                                   !3, 0
         28      > JMP                                                      ->56
    9    29    >   INIT_FCALL                                               'round'
         30        INIT_FCALL                                               'cos'
         31        SEND_VAR                                                 !3
         32        DO_ICALL                                         $15     
         33        MUL                                              ~16     $15, 400
         34        SEND_VAL                                                 ~16
         35        DO_ICALL                                         $17     
         36        ADD                                              ~18     $17, 450
         37        ASSIGN                                                   !4, ~18
   10    38        INIT_FCALL                                               'round'
         39        INIT_FCALL                                               'sin'
         40        SEND_VAR                                                 !3
         41        DO_ICALL                                         $20     
         42        MUL                                              ~21     $20, 400
         43        SEND_VAL                                                 ~21
         44        DO_ICALL                                         $22     
         45        ADD                                              ~23     $22, 450
         46        ASSIGN                                                   !5, ~23
   11    47        INIT_FCALL_BY_NAME                                       'imagefilledellipse'
         48        SEND_VAR_EX                                              !0
         49        SEND_VAR_EX                                              !4
         50        SEND_VAR_EX                                              !5
         51        SEND_VAL_EX                                              3
         52        SEND_VAL_EX                                              3
         53        SEND_VAR_EX                                              !2
         54        DO_FCALL                                      0          
    7    55        ASSIGN_OP                                     1          !3, 10
         56    >   IS_SMALLER_OR_EQUAL                                      !3, 360
         57      > JMPNZ                                                    ~27, ->29
   13    58    >   INIT_FCALL_BY_NAME                                       'imagepng'
         59        SEND_VAR_EX                                              !0
         60        DO_FCALL                                      0          
   14    61        INIT_FCALL_BY_NAME                                       'imagedestroy'
         62        SEND_VAR_EX                                              !0
         63        DO_FCALL                                      0          
         64      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.77 ms | 1400 KiB | 21 Q