3v4l.org

run code in 300+ PHP versions simultaneously
<?php print sprintf('%g', 999999); print sprintf(' - %g', 0.99999); print sprintf(' - %g', 0.0005); print sprintf(' - %g', 0.00005);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QauSd
function name:  (null)
number of ops:  21
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                                                 999999
          3        DO_ICALL                                         $0      
          4        ECHO                                                     $0
    3     5        INIT_FCALL                                               'sprintf'
          6        SEND_VAL                                                 '+-+%25g'
          7        SEND_VAL                                                 0.99999
          8        DO_ICALL                                         $1      
          9        ECHO                                                     $1
    4    10        INIT_FCALL                                               'sprintf'
         11        SEND_VAL                                                 '+-+%25g'
         12        SEND_VAL                                                 0.0005
         13        DO_ICALL                                         $2      
         14        ECHO                                                     $2
    5    15        INIT_FCALL                                               'sprintf'
         16        SEND_VAL                                                 '+-+%25g'
         17        SEND_VAL                                                 5.0e-5
         18        DO_ICALL                                         $3      
         19        ECHO                                                     $3
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.4 ms | 1399 KiB | 15 Q