3v4l.org

run code in 300+ PHP versions simultaneously
<?php $prc_str = "00002FB4"; $div_str = "50"; $div = base_convert($div_str[0],16,10); $prc = base_convert($prc_str,16,10); echo $prc." ".$div."\r\n"; echo floatval($prc)/floatval(10000); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/INp0n
function name:  (null)
number of ops:  24
compiled vars:  !0 = $prc_str, !1 = $div_str, !2 = $div, !3 = $prc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '00002FB4'
    3     1        ASSIGN                                                   !1, '50'
    4     2        INIT_FCALL                                               'base_convert'
          3        FETCH_DIM_R                                      ~6      !1, 0
          4        SEND_VAL                                                 ~6
          5        SEND_VAL                                                 16
          6        SEND_VAL                                                 10
          7        DO_ICALL                                         $7      
          8        ASSIGN                                                   !2, $7
    5     9        INIT_FCALL                                               'base_convert'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 16
         12        SEND_VAL                                                 10
         13        DO_ICALL                                         $9      
         14        ASSIGN                                                   !3, $9
    6    15        CONCAT                                           ~11     !3, '+'
         16        CONCAT                                           ~12     ~11, !2
         17        CONCAT                                           ~13     ~12, '%0D%0A'
         18        ECHO                                                     ~13
    7    19        CAST                                          5  ~14     !3
         20        CAST                                          5  ~15     10000
         21        DIV                                              ~16     ~14, ~15
         22        ECHO                                                     ~16
    8    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.51 ms | 1386 KiB | 15 Q