3v4l.org

run code in 500+ PHP versions simultaneously
<?php $file = '48600003801.html'; sscanf($file, '%03s%03s%04s%d', $chp, $art, $sec, $num); var_export([$chp, $art, $sec, $num]); sscanf($file, '%03d%03d%04d%d', $chp, $art, $sec, $num); var_export([$chp, $art, $sec, $num]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YDrjA
function name:  (null)
number of ops:  32
compiled vars:  !0 = $file, !1 = $chp, !2 = $art, !3 = $sec, !4 = $num
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '48600003801.html'
    5     1        INIT_FCALL                                                   'sscanf'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     '%2503s%2503s%2504s%25d'
          4        SEND_REF                                                     !1
          5        SEND_REF                                                     !2
          6        SEND_REF                                                     !3
          7        SEND_REF                                                     !4
          8        DO_ICALL                                                     
    6     9        INIT_FCALL                                                   'var_export'
         10        INIT_ARRAY                                           ~7      !1
         11        ADD_ARRAY_ELEMENT                                    ~7      !2
         12        ADD_ARRAY_ELEMENT                                    ~7      !3
         13        ADD_ARRAY_ELEMENT                                    ~7      !4
         14        SEND_VAL                                                     ~7
         15        DO_ICALL                                                     
    9    16        INIT_FCALL                                                   'sscanf'
         17        SEND_VAR                                                     !0
         18        SEND_VAL                                                     '%2503d%2503d%2504d%25d'
         19        SEND_REF                                                     !1
         20        SEND_REF                                                     !2
         21        SEND_REF                                                     !3
         22        SEND_REF                                                     !4
         23        DO_ICALL                                                     
   10    24        INIT_FCALL                                                   'var_export'
         25        INIT_ARRAY                                           ~10     !1
         26        ADD_ARRAY_ELEMENT                                    ~10     !2
         27        ADD_ARRAY_ELEMENT                                    ~10     !3
         28        ADD_ARRAY_ELEMENT                                    ~10     !4
         29        SEND_VAL                                                     ~10
         30        DO_ICALL                                                     
         31      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.01 ms | 1602 KiB | 14 Q