3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 123.456789; echo round($a, 2); echo sprintf('%01.2F', $a); echo bcmul($a, 100);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jloBK
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 123.457
    3     1        INIT_FCALL                                               'round'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 2
          4        DO_ICALL                                         $2      
          5        ECHO                                                     $2
    4     6        INIT_FCALL                                               'sprintf'
          7        SEND_VAL                                                 '%2501.2F'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $3      
         10        ECHO                                                     $3
    5    11        INIT_FCALL_BY_NAME                                       'bcmul'
         12        SEND_VAR_EX                                              !0
         13        SEND_VAL_EX                                              100
         14        DO_FCALL                                      0  $4      
         15        ECHO                                                     $4
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.3 ms | 1394 KiB | 17 Q