3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.05 ms | 1394 KiB | 15 Q