3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.85 ms | 1386 KiB | 20 Q