3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(sprintf('%017.0f', (float) "13911392101301011")); // 13911392101301012 var_dump(number_format(13911392101301011, 0, '', ''));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0baib
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'sprintf'
          2        SEND_VAL                                                 '%25017.0f'
          3        CAST                                          5  ~0      '13911392101301011'
          4        SEND_VAL                                                 ~0
          5        DO_ICALL                                         $1      
          6        SEND_VAR                                                 $1
          7        DO_ICALL                                                 
    5     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'number_format'
         10        SEND_VAL                                                 13911392101301011
         11        SEND_VAL                                                 0
         12        SEND_VAL                                                 ''
         13        SEND_VAL                                                 ''
         14        DO_ICALL                                         $3      
         15        SEND_VAR                                                 $3
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.75 ms | 1399 KiB | 19 Q