3v4l.org

run code in 300+ PHP versions simultaneously
<?php $directorio = '/tmp/13072017_1315_38/'; $pos = strrpos($directorio, "/", -1); echo "\n"; $length = strlen($directorio); echo substr($directorio, $pos, $length) ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8A1Iu
function name:  (null)
number of ops:  17
compiled vars:  !0 = $directorio, !1 = $pos, !2 = $length
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2Ftmp%2F13072017_1315_38%2F'
    3     1        INIT_FCALL                                               'strrpos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '%2F'
          4        SEND_VAL                                                 -1
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
    4     7        ECHO                                                     '%0A'
    5     8        STRLEN                                           ~6      !0
          9        ASSIGN                                                   !2, ~6
    6    10        INIT_FCALL                                               'substr'
         11        SEND_VAR                                                 !0
         12        SEND_VAR                                                 !1
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                         $8      
         15        ECHO                                                     $8
    9    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.56 ms | 1394 KiB | 17 Q