3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sourceId = '10131'; $idString = str_pad(strrev((string)$sourceId), 3, '0'); echo substr($idString, 0, 2) . '/' . substr($idString, 2) . '/';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/h5WoZ
function name:  (null)
number of ops:  25
compiled vars:  !0 = $sourceId, !1 = $idString
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '10131'
    3     1        INIT_FCALL                                               'str_pad'
          2        INIT_FCALL                                               'strrev'
          3        CAST                                          6  ~3      !0
          4        SEND_VAL                                                 ~3
          5        DO_ICALL                                         $4      
          6        SEND_VAR                                                 $4
          7        SEND_VAL                                                 3
          8        SEND_VAL                                                 '0'
          9        DO_ICALL                                         $5      
         10        ASSIGN                                                   !1, $5
    4    11        INIT_FCALL                                               'substr'
         12        SEND_VAR                                                 !1
         13        SEND_VAL                                                 0
         14        SEND_VAL                                                 2
         15        DO_ICALL                                         $7      
         16        CONCAT                                           ~8      $7, '%2F'
         17        INIT_FCALL                                               'substr'
         18        SEND_VAR                                                 !1
         19        SEND_VAL                                                 2
         20        DO_ICALL                                         $9      
         21        CONCAT                                           ~10     ~8, $9
         22        CONCAT                                           ~11     ~10, '%2F'
         23        ECHO                                                     ~11
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.7 ms | 1386 KiB | 19 Q