3v4l.org

run code in 300+ PHP versions simultaneously
<?php bcscale(3); $discount = bcmul(bcdiv('10', '100'), '850.53'); var_dump($discount); var_dump(bcsub('850.53', $discount));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/d3gUP
function name:  (null)
number of ops:  23
compiled vars:  !0 = $discount
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'bcscale'
          1        SEND_VAL_EX                                              3
          2        DO_FCALL                                      0          
    5     3        INIT_FCALL_BY_NAME                                       'bcmul'
          4        INIT_FCALL_BY_NAME                                       'bcdiv'
          5        SEND_VAL_EX                                              '10'
          6        SEND_VAL_EX                                              '100'
          7        DO_FCALL                                      0  $2      
          8        SEND_VAR_NO_REF_EX                                       $2
          9        SEND_VAL_EX                                              '850.53'
         10        DO_FCALL                                      0  $3      
         11        ASSIGN                                                   !0, $3
    7    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
    9    15        INIT_FCALL                                               'var_dump'
         16        INIT_FCALL_BY_NAME                                       'bcsub'
         17        SEND_VAL_EX                                              '850.53'
         18        SEND_VAR_EX                                              !0
         19        DO_FCALL                                      0  $6      
         20        SEND_VAR                                                 $6
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
201.58 ms | 1395 KiB | 27 Q