3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.85 ms | 1385 KiB | 15 Q