3v4l.org

run code in 300+ PHP versions simultaneously
<?php //echo pack('H', 0x079888792F); function unhex($hex) { for($i=0;$i<strlen($hex);$i+=2) $str .= chr(hexdec(substr($hex,$i,2))); echo $str; } unhex('079888792F');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gCsHp
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'unhex'
          1        SEND_VAL                                                 '079888792F'
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Function unhex:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 3
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 3
Branch analysis from position: 19
Branch analysis from position: 3
filename:       /in/gCsHp
function name:  unhex
number of ops:  21
compiled vars:  !0 = $hex, !1 = $i, !2 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->16
    6     3    >   INIT_FCALL                                               'chr'
          4        INIT_FCALL                                               'hexdec'
          5        INIT_FCALL                                               'substr'
          6        SEND_VAR                                                 !0
          7        SEND_VAR                                                 !1
          8        SEND_VAL                                                 2
          9        DO_ICALL                                         $4      
         10        SEND_VAR                                                 $4
         11        DO_ICALL                                         $5      
         12        SEND_VAR                                                 $5
         13        DO_ICALL                                         $6      
         14        ASSIGN_OP                                     8          !2, $6
    5    15        ASSIGN_OP                                     1          !1, 2
         16    >   STRLEN                                           ~9      !0
         17        IS_SMALLER                                               !1, ~9
         18      > JMPNZ                                                    ~10, ->3
    8    19    >   ECHO                                                     !2
    9    20      > RETURN                                                   null

End of function unhex

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.49 ms | 1399 KiB | 20 Q