3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = floatval("47.24795354550964"); echo "$f\n"; echo sprintf("%.14f\n", $f); echo sprintf("%.20f\n", $f);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TtbNa
function name:  (null)
number of ops:  16
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   CAST                                          5  ~1      '47.24795354550964'
          1        ASSIGN                                                   !0, ~1
    4     2        NOP                                                      
          3        FAST_CONCAT                                      ~3      !0, '%0A'
          4        ECHO                                                     ~3
    5     5        INIT_FCALL                                               'sprintf'
          6        SEND_VAL                                                 '%25.14f%0A'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $4      
          9        ECHO                                                     $4
    6    10        INIT_FCALL                                               'sprintf'
         11        SEND_VAL                                                 '%25.20f%0A'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $5      
         14        ECHO                                                     $5
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.55 ms | 1394 KiB | 15 Q