3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo sprintf('%d%%', (hexdec('fc')/hexdec('ff')) * 100);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DOC8R
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'sprintf'
          1        SEND_VAL                                                 '%25d%25%25'
          2        INIT_FCALL                                               'hexdec'
          3        SEND_VAL                                                 'fc'
          4        DO_ICALL                                         $0      
          5        INIT_FCALL                                               'hexdec'
          6        SEND_VAL                                                 'ff'
          7        DO_ICALL                                         $1      
          8        DIV                                              ~2      $0, $1
          9        MUL                                              ~3      ~2, 100
         10        SEND_VAL                                                 ~3
         11        DO_ICALL                                         $4      
         12        ECHO                                                     $4
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.2 ms | 1394 KiB | 17 Q