3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo number_format(round(3.2550, 2), 2, ',', '.') + 0; echo PHP_EOL; echo number_format(round(3.4000, 2), 2, ',', '.') + 0;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oMI2h
function name:  (null)
number of ops:  26
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'number_format'
          1        INIT_FCALL                                               'round'
          2        SEND_VAL                                                 3.255
          3        SEND_VAL                                                 2
          4        DO_ICALL                                         $0      
          5        SEND_VAR                                                 $0
          6        SEND_VAL                                                 2
          7        SEND_VAL                                                 '%2C'
          8        SEND_VAL                                                 '.'
          9        DO_ICALL                                         $1      
         10        ADD                                              ~2      $1, 0
         11        ECHO                                                     ~2
    3    12        ECHO                                                     '%0A'
    4    13        INIT_FCALL                                               'number_format'
         14        INIT_FCALL                                               'round'
         15        SEND_VAL                                                 3.4
         16        SEND_VAL                                                 2
         17        DO_ICALL                                         $3      
         18        SEND_VAR                                                 $3
         19        SEND_VAL                                                 2
         20        SEND_VAL                                                 '%2C'
         21        SEND_VAL                                                 '.'
         22        DO_ICALL                                         $4      
         23        ADD                                              ~5      $4, 0
         24        ECHO                                                     ~5
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.11 ms | 1395 KiB | 17 Q