3v4l.org

run code in 300+ PHP versions simultaneously
<?php $decimal = '10.21'; $scale = 2; var_dump($decimal * (10 ** $scale));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/v8bhQ
function name:  (null)
number of ops:  8
compiled vars:  !0 = $decimal, !1 = $scale
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '10.21'
    5     1        ASSIGN                                                   !1, 2
    7     2        INIT_FCALL                                               'var_dump'
          3        POW                                              ~4      10, !1
          4        MUL                                              ~5      !0, ~4
          5        SEND_VAL                                                 ~5
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.87 ms | 1014 KiB | 14 Q