3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.91 ms | 1006 KiB | 16 Q