3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.64 ms | 1395 KiB | 17 Q