3v4l.org

run code in 300+ PHP versions simultaneously
<?php $res = 8 * pow(16,-1); echo base_convert("$res",10,16),"\n"; echo dechex($res),"\n"; printf("%x",$res);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7jdfh
function name:  (null)
number of ops:  24
compiled vars:  !0 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'pow'
          1        SEND_VAL                                                 16
          2        SEND_VAL                                                 -1
          3        DO_ICALL                                         $1      
          4        MUL                                              ~2      $1, 8
          5        ASSIGN                                                   !0, ~2
    6     6        INIT_FCALL                                               'base_convert'
          7        CAST                                          6  ~4      !0
          8        SEND_VAL                                                 ~4
          9        SEND_VAL                                                 10
         10        SEND_VAL                                                 16
         11        DO_ICALL                                         $5      
         12        ECHO                                                     $5
         13        ECHO                                                     '%0A'
    8    14        INIT_FCALL                                               'dechex'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $6      
         17        ECHO                                                     $6
         18        ECHO                                                     '%0A'
   10    19        INIT_FCALL                                               'printf'
         20        SEND_VAL                                                 '%25x'
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.15 ms | 1386 KiB | 21 Q