3v4l.org

run code in 300+ PHP versions simultaneously
<?php header("content-type:image/png"); $im = imagecreate(100, 100); $a = sprintf('%04x',mt_rand(0, 65535)); $b = sprintf('%04x',mt_rand(0, 65535)); $c = sprintf('%04x',mt_rand(0, 65535)); $white = imagecolorallocate($im,$a,$b,$c); imagepng($im); imagedestroy($im); echo "\n\n\n$a-$b-$c";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1lghI
function name:  (null)
number of ops:  56
compiled vars:  !0 = $im, !1 = $a, !2 = $b, !3 = $c, !4 = $white
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'header'
          1        SEND_VAL                                                 'content-type%3Aimage%2Fpng'
          2        DO_ICALL                                                 
    3     3        INIT_FCALL_BY_NAME                                       'imagecreate'
          4        SEND_VAL_EX                                              100
          5        SEND_VAL_EX                                              100
          6        DO_FCALL                                      0  $6      
          7        ASSIGN                                                   !0, $6
    4     8        INIT_FCALL                                               'sprintf'
          9        SEND_VAL                                                 '%2504x'
         10        INIT_FCALL                                               'mt_rand'
         11        SEND_VAL                                                 0
         12        SEND_VAL                                                 65535
         13        DO_ICALL                                         $8      
         14        SEND_VAR                                                 $8
         15        DO_ICALL                                         $9      
         16        ASSIGN                                                   !1, $9
    5    17        INIT_FCALL                                               'sprintf'
         18        SEND_VAL                                                 '%2504x'
         19        INIT_FCALL                                               'mt_rand'
         20        SEND_VAL                                                 0
         21        SEND_VAL                                                 65535
         22        DO_ICALL                                         $11     
         23        SEND_VAR                                                 $11
         24        DO_ICALL                                         $12     
         25        ASSIGN                                                   !2, $12
    6    26        INIT_FCALL                                               'sprintf'
         27        SEND_VAL                                                 '%2504x'
         28        INIT_FCALL                                               'mt_rand'
         29        SEND_VAL                                                 0
         30        SEND_VAL                                                 65535
         31        DO_ICALL                                         $14     
         32        SEND_VAR                                                 $14
         33        DO_ICALL                                         $15     
         34        ASSIGN                                                   !3, $15
    7    35        INIT_FCALL_BY_NAME                                       'imagecolorallocate'
         36        SEND_VAR_EX                                              !0
         37        SEND_VAR_EX                                              !1
         38        SEND_VAR_EX                                              !2
         39        SEND_VAR_EX                                              !3
         40        DO_FCALL                                      0  $17     
         41        ASSIGN                                                   !4, $17
    8    42        INIT_FCALL_BY_NAME                                       'imagepng'
         43        SEND_VAR_EX                                              !0
         44        DO_FCALL                                      0          
    9    45        INIT_FCALL_BY_NAME                                       'imagedestroy'
         46        SEND_VAR_EX                                              !0
         47        DO_FCALL                                      0          
   10    48        ROPE_INIT                                     6  ~22     '%0A%0A%0A'
         49        ROPE_ADD                                      1  ~22     ~22, !1
         50        ROPE_ADD                                      2  ~22     ~22, '-'
         51        ROPE_ADD                                      3  ~22     ~22, !2
         52        ROPE_ADD                                      4  ~22     ~22, '-'
         53        ROPE_END                                      5  ~21     ~22, !3
         54        ECHO                                                     ~21
         55      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.62 ms | 1400 KiB | 19 Q