3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.01 ms | 1394 KiB | 15 Q