3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.7 ms | 997 KiB | 15 Q