3v4l.org

run code in 300+ PHP versions simultaneously
<?php $summ = 200.01; var_dump([ sprintf('%.2f', $summ), sprintf('%02.2f', $summ), sprintf('%2.2f', $summ), sprintf('%2f', $summ), sprintf('%2.2f', $summ), sprintf('%2.2f', $summ), sprintf('%2.2f', $summ), sprintf('%2.2f', $summ), sprintf('%2.2f', $summ), sprintf('%2.2f', $summ), sprintf('%2.2f', $summ), ]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ohnlf
function name:  (null)
number of ops:  60
compiled vars:  !0 = $summ
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 200.01
    4     1        INIT_FCALL                                               'var_dump'
    5     2        INIT_FCALL                                               'sprintf'
          3        SEND_VAL                                                 '%25.2f'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        INIT_ARRAY                                       ~3      $2
    6     7        INIT_FCALL                                               'sprintf'
          8        SEND_VAL                                                 '%2502.2f'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $4      
         11        ADD_ARRAY_ELEMENT                                ~3      $4
    7    12        INIT_FCALL                                               'sprintf'
         13        SEND_VAL                                                 '%252.2f'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $5      
         16        ADD_ARRAY_ELEMENT                                ~3      $5
    8    17        INIT_FCALL                                               'sprintf'
         18        SEND_VAL                                                 '%252f'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                         $6      
         21        ADD_ARRAY_ELEMENT                                ~3      $6
    9    22        INIT_FCALL                                               'sprintf'
         23        SEND_VAL                                                 '%252.2f'
         24        SEND_VAR                                                 !0
         25        DO_ICALL                                         $7      
         26        ADD_ARRAY_ELEMENT                                ~3      $7
   10    27        INIT_FCALL                                               'sprintf'
         28        SEND_VAL                                                 '%252.2f'
         29        SEND_VAR                                                 !0
         30        DO_ICALL                                         $8      
         31        ADD_ARRAY_ELEMENT                                ~3      $8
   11    32        INIT_FCALL                                               'sprintf'
         33        SEND_VAL                                                 '%252.2f'
         34        SEND_VAR                                                 !0
         35        DO_ICALL                                         $9      
         36        ADD_ARRAY_ELEMENT                                ~3      $9
   12    37        INIT_FCALL                                               'sprintf'
         38        SEND_VAL                                                 '%252.2f'
         39        SEND_VAR                                                 !0
         40        DO_ICALL                                         $10     
         41        ADD_ARRAY_ELEMENT                                ~3      $10
   13    42        INIT_FCALL                                               'sprintf'
         43        SEND_VAL                                                 '%252.2f'
         44        SEND_VAR                                                 !0
         45        DO_ICALL                                         $11     
         46        ADD_ARRAY_ELEMENT                                ~3      $11
   14    47        INIT_FCALL                                               'sprintf'
         48        SEND_VAL                                                 '%252.2f'
         49        SEND_VAR                                                 !0
         50        DO_ICALL                                         $12     
         51        ADD_ARRAY_ELEMENT                                ~3      $12
   15    52        INIT_FCALL                                               'sprintf'
         53        SEND_VAL                                                 '%252.2f'
         54        SEND_VAR                                                 !0
         55        DO_ICALL                                         $13     
         56        ADD_ARRAY_ELEMENT                                ~3      $13
         57        SEND_VAL                                                 ~3
         58        DO_ICALL                                                 
   16    59      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.5 ms | 1400 KiB | 17 Q