3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Requires the GD Library header("Content-type: image/png"); $im = imagecreatetruecolor(512, 512) or die("Cannot Initialize new GD image stream"); $white = imagecolorallocate($im, 255, 255, 255); for ($y = 0; $y < 512; $y++) { for ($x = 0; $x < 512; $x++) { if (rand(0, 1)) { imagesetpixel($im, $x, $y, $white); } } } imagepng($im); imagedestroy($im);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
2 jumps found. (Code = 44) Position 1 = 39, Position 2 = 20
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 22
Branch analysis from position: 36
2 jumps found. (Code = 44) Position 1 = 39, Position 2 = 20
Branch analysis from position: 39
Branch analysis from position: 20
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 33
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 22
Branch analysis from position: 36
Branch analysis from position: 22
Branch analysis from position: 33
filename:       /in/XqvkL
function name:  (null)
number of ops:  46
compiled vars:  !0 = $im, !1 = $white, !2 = $y, !3 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     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                                              512
          5        SEND_VAL_EX                                              512
          6        DO_FCALL                                      0  $5      
          7        ASSIGN                                           ~6      !0, $5
          8      > JMPNZ_EX                                         ~6      ~6, ->11
    5     9    > > EXIT                                                     'Cannot+Initialize+new+GD+image+stream'
         10*       BOOL                                             ~6      <true>
    6    11    >   INIT_FCALL_BY_NAME                                       'imagecolorallocate'
         12        SEND_VAR_EX                                              !0
         13        SEND_VAL_EX                                              255
         14        SEND_VAL_EX                                              255
         15        SEND_VAL_EX                                              255
         16        DO_FCALL                                      0  $7      
         17        ASSIGN                                                   !1, $7
    7    18        ASSIGN                                                   !2, 0
         19      > JMP                                                      ->37
    8    20    >   ASSIGN                                                   !3, 0
         21      > JMP                                                      ->34
    9    22    >   INIT_FCALL                                               'rand'
         23        SEND_VAL                                                 0
         24        SEND_VAL                                                 1
         25        DO_ICALL                                         $11     
         26      > JMPZ                                                     $11, ->33
   10    27    >   INIT_FCALL_BY_NAME                                       'imagesetpixel'
         28        SEND_VAR_EX                                              !0
         29        SEND_VAR_EX                                              !3
         30        SEND_VAR_EX                                              !2
         31        SEND_VAR_EX                                              !1
         32        DO_FCALL                                      0          
    8    33    >   PRE_INC                                                  !3
         34    >   IS_SMALLER                                               !3, 512
         35      > JMPNZ                                                    ~14, ->22
    7    36    >   PRE_INC                                                  !2
         37    >   IS_SMALLER                                               !2, 512
         38      > JMPNZ                                                    ~16, ->20
   14    39    >   INIT_FCALL_BY_NAME                                       'imagepng'
         40        SEND_VAR_EX                                              !0
         41        DO_FCALL                                      0          
   15    42        INIT_FCALL_BY_NAME                                       'imagedestroy'
         43        SEND_VAR_EX                                              !0
         44        DO_FCALL                                      0          
         45      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.02 ms | 1400 KiB | 17 Q