3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo ("0x15" + 1),"\n"; //0x16 == 22 var_dump("0x" . dechex(15) + 0); //15 echo (("0x" . dechex(15)) + 1); //16
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WrQuW
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ADD                                              ~0      '0x15', 1
          1        ECHO                                                     ~0
          2        ECHO                                                     '%0A'
    3     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'dechex'
          5        SEND_VAL                                                 15
          6        DO_ICALL                                         $1      
          7        ADD                                              ~2      $1, 0
          8        CONCAT                                           ~3      '0x', ~2
          9        SEND_VAL                                                 ~3
         10        DO_ICALL                                                 
    4    11        INIT_FCALL                                               'dechex'
         12        SEND_VAL                                                 15
         13        DO_ICALL                                         $5      
         14        CONCAT                                           ~6      '0x', $5
         15        ADD                                              ~7      ~6, 1
         16        ECHO                                                     ~7
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
189.73 ms | 1394 KiB | 17 Q