3v4l.org

run code in 300+ PHP versions simultaneously
<?php function rgb_to_hex($red, $green, $blue) { return dechex($red).dechex($green).dechex($blue); } echo rgb_to_hex(217, 39, 44);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YJPZv
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'rgb_to_hex'
          1        SEND_VAL                                                 217
          2        SEND_VAL                                                 39
          3        SEND_VAL                                                 44
          4        DO_FCALL                                      0  $0      
          5        ECHO                                                     $0
          6      > RETURN                                                   1

Function rgb_to_hex:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YJPZv
function name:  rgb_to_hex
number of ops:  16
compiled vars:  !0 = $red, !1 = $green, !2 = $blue
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    4     3        INIT_FCALL                                               'dechex'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        INIT_FCALL                                               'dechex'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $4      
          9        CONCAT                                           ~5      $3, $4
         10        INIT_FCALL                                               'dechex'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                         $6      
         13        CONCAT                                           ~7      ~5, $6
         14      > RETURN                                                   ~7
    5    15*     > RETURN                                                   null

End of function rgb_to_hex

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.28 ms | 1398 KiB | 16 Q