3v4l.org

run code in 500+ 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:  15
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        FRAMELESS_ICALL_2                substr              ~2      !0, -6
          4        SEND_VAL                                                     ~2
          5        SEND_VAL                                                     0
          6        SEND_VAL                                                     ''
          7        SEND_VAL                                                     '.'
          8        DO_ICALL                                             $3      
          9        MUL                                                  ~4      $3, 100
         10        SEND_VAL                                                     ~4
         11        DO_ICALL                                             $5      
         12        DIV                                                  ~6      $5, 1000
         13        ECHO                                                         ~6
    6    14      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.81 ms | 2089 KiB | 15 Q