3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo printf("%.2f", 1).'\n'; echo printf("%.3f", 1).'\n'; echo printf("%.2f", 1.1234).'\n'; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tGFVS
function name:  (null)
number of ops:  19
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'printf'
          1        SEND_VAL                                                 '%25.2f'
          2        SEND_VAL                                                 1
          3        DO_ICALL                                         $0      
          4        CONCAT                                           ~1      $0, '%5Cn'
          5        ECHO                                                     ~1
    5     6        INIT_FCALL                                               'printf'
          7        SEND_VAL                                                 '%25.3f'
          8        SEND_VAL                                                 1
          9        DO_ICALL                                         $2      
         10        CONCAT                                           ~3      $2, '%5Cn'
         11        ECHO                                                     ~3
    7    12        INIT_FCALL                                               'printf'
         13        SEND_VAL                                                 '%25.2f'
         14        SEND_VAL                                                 1.1234
         15        DO_ICALL                                         $4      
         16        CONCAT                                           ~5      $4, '%5Cn'
         17        ECHO                                                     ~5
    9    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.67 ms | 1386 KiB | 15 Q