3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
185.39 ms | 1394 KiB | 15 Q