3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sourceId = '10131'; $idString = str_pad(strrev((string)$sourceId), 3, '0'); echo "/{$type}/" . 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/9QG18
function name:  (null)
number of ops:  29
compiled vars:  !0 = $sourceId, !1 = $idString, !2 = $type
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  ~4      !0
          4        SEND_VAL                                                 ~4
          5        DO_ICALL                                         $5      
          6        SEND_VAR                                                 $5
          7        SEND_VAL                                                 3
          8        SEND_VAL                                                 '0'
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !1, $6
    4    11        ROPE_INIT                                     3  ~9      '%2F'
         12        ROPE_ADD                                      1  ~9      ~9, !2
         13        ROPE_END                                      2  ~8      ~9, '%2F'
         14        INIT_FCALL                                               'substr'
         15        SEND_VAR                                                 !1
         16        SEND_VAL                                                 0
         17        SEND_VAL                                                 2
         18        DO_ICALL                                         $11     
         19        CONCAT                                           ~12     ~8, $11
         20        CONCAT                                           ~13     ~12, '%2F'
         21        INIT_FCALL                                               'substr'
         22        SEND_VAR                                                 !1
         23        SEND_VAL                                                 2
         24        DO_ICALL                                         $14     
         25        CONCAT                                           ~15     ~13, $14
         26        CONCAT                                           ~16     ~15, '%2F'
         27        ECHO                                                     ~16
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.62 ms | 1395 KiB | 19 Q