3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.37 ms | 1394 KiB | 15 Q