3v4l.org

run code in 300+ PHP versions simultaneously
<?php setlocale(LC_ALL, 'is_IS'); $localeconv = localeconv(); $number = "1.15"; echo sprintf("%0.2f", $number);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UGB6E
function name:  (null)
number of ops:  14
compiled vars:  !0 = $localeconv, !1 = $number
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'setlocale'
          1        SEND_VAL                                                 6
          2        SEND_VAL                                                 'is_IS'
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'localeconv'
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !0, $3
    5     7        ASSIGN                                                   !1, '1.15'
    7     8        INIT_FCALL                                               'sprintf'
          9        SEND_VAL                                                 '%250.2f'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $6      
         12        ECHO                                                     $6
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.53 ms | 1394 KiB | 19 Q