3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 1.5; $b = 5; var_dump(sprintf('%s %d %.0F', $a, $a, $a)); var_dump(sprintf('%s %d %f', $b, $b, $b));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eG8oE
function name:  (null)
number of ops:  21
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1.5
    4     1        ASSIGN                                                   !1, 5
    5     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'sprintf'
          4        SEND_VAL                                                 '%25s+%25d+%25.0F'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !0
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $4      
          9        SEND_VAR                                                 $4
         10        DO_ICALL                                                 
    6    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'sprintf'
         13        SEND_VAL                                                 '%25s+%25d+%25f'
         14        SEND_VAR                                                 !1
         15        SEND_VAR                                                 !1
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                         $6      
         18        SEND_VAR                                                 $6
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.31 ms | 1395 KiB | 17 Q