3v4l.org

run code in 300+ PHP versions simultaneously
<?php $im = imagecreatefrompng("http://okta3.ideone.com/gfx/ideone/logo.png"); $rgb = imagecolorat($im, 10, 15); $r = ($rgb >> 16) & 0xFF; $g = ($rgb >> 8) & 0xFF; $b = $rgb & 0xFF; var_dump($r, $g, $b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lb6HQ
function name:  (null)
number of ops:  24
compiled vars:  !0 = $im, !1 = $rgb, !2 = $r, !3 = $g, !4 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'imagecreatefrompng'
          1        SEND_VAL_EX                                              'http%3A%2F%2Fokta3.ideone.com%2Fgfx%2Fideone%2Flogo.png'
          2        DO_FCALL                                      0  $5      
          3        ASSIGN                                                   !0, $5
    3     4        INIT_FCALL_BY_NAME                                       'imagecolorat'
          5        SEND_VAR_EX                                              !0
          6        SEND_VAL_EX                                              10
          7        SEND_VAL_EX                                              15
          8        DO_FCALL                                      0  $7      
          9        ASSIGN                                                   !1, $7
    4    10        SR                                               ~9      !1, 16
         11        BW_AND                                           ~10     ~9, 255
         12        ASSIGN                                                   !2, ~10
    5    13        SR                                               ~12     !1, 8
         14        BW_AND                                           ~13     ~12, 255
         15        ASSIGN                                                   !3, ~13
    6    16        BW_AND                                           ~15     !1, 255
         17        ASSIGN                                                   !4, ~15
    8    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !2
         20        SEND_VAR                                                 !3
         21        SEND_VAR                                                 !4
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.66 ms | 1395 KiB | 15 Q