3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.64 ms | 1386 KiB | 17 Q