3v4l.org

run code in 300+ PHP versions simultaneously
<?php $precision = 12; $x = 0.00002123; echo bcadd( number_format( num: $x, decimals: $precision, decimal_separator: '.', thousands_separator: '' ), 5, $precision );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lPZ3ik
function name:  (null)
number of ops:  15
compiled vars:  !0 = $precision, !1 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 12
    4     1        ASSIGN                                                   !1, 2.123e-5
    5     2        INIT_FCALL_BY_NAME                                       'bcadd'
    6     3        INIT_FCALL                                               'number_format'
    7     4        SEND_VAR                                                 !1
    8     5        SEND_VAR                                                 !0
    9     6        SEND_VAL                                                 '.'
   10     7        SEND_VAL                                                 ''
    6     8        DO_ICALL                                         $4      
   10     9        SEND_VAR_NO_REF_EX                                       $4
   12    10        SEND_VAL_EX                                              5
    6    11        SEND_VAR_EX                                              !0
    5    12        DO_FCALL                                      0  $5      
    6    13        ECHO                                                     $5
   14    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.1 ms | 1009 KiB | 14 Q