3v4l.org

run code in 300+ PHP versions simultaneously
<?php print sprintf('%g', 99999); print sprintf(' - %g', 0.9999); print sprintf(' - %g', 0.999);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4ItCF
function name:  (null)
number of ops:  16
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'sprintf'
          1        SEND_VAL                                                 '%25g'
          2        SEND_VAL                                                 99999
          3        DO_ICALL                                         $0      
          4        ECHO                                                     $0
    3     5        INIT_FCALL                                               'sprintf'
          6        SEND_VAL                                                 '+-+%25g'
          7        SEND_VAL                                                 0.9999
          8        DO_ICALL                                         $1      
          9        ECHO                                                     $1
    4    10        INIT_FCALL                                               'sprintf'
         11        SEND_VAL                                                 '+-+%25g'
         12        SEND_VAL                                                 0.999
         13        DO_ICALL                                         $2      
         14        ECHO                                                     $2
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.92 ms | 1394 KiB | 15 Q