3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hexData = 0xA; $str = 45; $newHex = "0x".dechex($hexData).$str; echo $newHex.PHP_EOL; echo hexdec($newHex).PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mDU7c
function name:  (null)
number of ops:  16
compiled vars:  !0 = $hexData, !1 = $str, !2 = $newHex
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 10
    4     1        ASSIGN                                                   !1, 45
    5     2        INIT_FCALL                                               'dechex'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        CONCAT                                           ~6      '0x', $5
          6        CONCAT                                           ~7      ~6, !1
          7        ASSIGN                                                   !2, ~7
    6     8        CONCAT                                           ~9      !2, '%0A'
          9        ECHO                                                     ~9
    7    10        INIT_FCALL                                               'hexdec'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                         $10     
         13        CONCAT                                           ~11     $10, '%0A'
         14        ECHO                                                     ~11
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.51 ms | 999 KiB | 15 Q