3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = "#333333"; $hex_r = substr($value, 1, 2); $hex_g = substr($value, 3, 2); $hex_b = substr($value, 5, 2); echo intval($hex_r, 16);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1dqu6
function name:  (null)
number of ops:  25
compiled vars:  !0 = $value, !1 = $hex_r, !2 = $hex_g, !3 = $hex_b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%23333333'
    5     1        INIT_FCALL                                               'substr'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 1
          4        SEND_VAL                                                 2
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !1, $5
    6     7        INIT_FCALL                                               'substr'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 3
         10        SEND_VAL                                                 2
         11        DO_ICALL                                         $7      
         12        ASSIGN                                                   !2, $7
    7    13        INIT_FCALL                                               'substr'
         14        SEND_VAR                                                 !0
         15        SEND_VAL                                                 5
         16        SEND_VAL                                                 2
         17        DO_ICALL                                         $9      
         18        ASSIGN                                                   !3, $9
    9    19        INIT_FCALL                                               'intval'
         20        SEND_VAR                                                 !1
         21        SEND_VAL                                                 16
         22        DO_ICALL                                         $11     
         23        ECHO                                                     $11
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.66 ms | 940 KiB | 18 Q