3v4l.org

run code in 300+ PHP versions simultaneously
<?php header("Content-type: image/png"); $im = imagecreatetruecolor(512, 512); $true = imagecolorallocate($im, 255, 255, 255); foreach (range(0, 512) as $y) { foreach (range(0, 512) as $x) { if (mt_rand(0, 1)) { imagesetpixel($im, $x, $y, $true); } } } imagepng($im);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 20, Position 2 = 41
Branch analysis from position: 20
2 jumps found. (Code = 78) Position 1 = 21, Position 2 = 41
Branch analysis from position: 21
2 jumps found. (Code = 77) Position 1 = 26, Position 2 = 39
Branch analysis from position: 26
2 jumps found. (Code = 78) Position 1 = 27, Position 2 = 39
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 38
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
Branch analysis from position: 38
Branch analysis from position: 39
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 39
Branch analysis from position: 41
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 41
filename:       /in/tjPZh
function name:  (null)
number of ops:  46
compiled vars:  !0 = $im, !1 = $true, !2 = $y, !3 = $x
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        INIT_FCALL_BY_NAME                                       'imagecreatetruecolor'
          4        SEND_VAL_EX                                              512
          5        SEND_VAL_EX                                              512
          6        DO_FCALL                                      0  $5      
          7        ASSIGN                                                   !0, $5
    4     8        INIT_FCALL_BY_NAME                                       'imagecolorallocate'
          9        SEND_VAR_EX                                              !0
         10        SEND_VAL_EX                                              255
         11        SEND_VAL_EX                                              255
         12        SEND_VAL_EX                                              255
         13        DO_FCALL                                      0  $7      
         14        ASSIGN                                                   !1, $7
    5    15        INIT_FCALL                                               'range'
         16        SEND_VAL                                                 0
         17        SEND_VAL                                                 512
         18        DO_ICALL                                         $9      
         19      > FE_RESET_R                                       $10     $9, ->41
         20    > > FE_FETCH_R                                               $10, !2, ->41
    6    21    >   INIT_FCALL                                               'range'
         22        SEND_VAL                                                 0
         23        SEND_VAL                                                 512
         24        DO_ICALL                                         $11     
         25      > FE_RESET_R                                       $12     $11, ->39
         26    > > FE_FETCH_R                                               $12, !3, ->39
    7    27    >   INIT_FCALL                                               'mt_rand'
         28        SEND_VAL                                                 0
         29        SEND_VAL                                                 1
         30        DO_ICALL                                         $13     
         31      > JMPZ                                                     $13, ->38
    8    32    >   INIT_FCALL_BY_NAME                                       'imagesetpixel'
         33        SEND_VAR_EX                                              !0
         34        SEND_VAR_EX                                              !3
         35        SEND_VAR_EX                                              !2
         36        SEND_VAR_EX                                              !1
         37        DO_FCALL                                      0          
    6    38    > > JMP                                                      ->26
         39    >   FE_FREE                                                  $12
    5    40      > JMP                                                      ->20
         41    >   FE_FREE                                                  $10
   12    42        INIT_FCALL_BY_NAME                                       'imagepng'
         43        SEND_VAR_EX                                              !0
         44        DO_FCALL                                      0          
         45      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.25 ms | 1400 KiB | 19 Q