3v4l.org

run code in 300+ PHP versions simultaneously
<?php $e = '\\a\\b\\c\\d'; $e = 'asfdhjadfhj'; var_dump(strrchr($e, '\\')); echo ltrim(substr($e, strrchr($e, '\\') || 0), '\\');
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 17, Position 2 = 18
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/YN7ND
function name:  (null)
number of ops:  25
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%5Ca%5Cb%5Cc%5Cd'
    4     1        ASSIGN                                                   !0, 'asfdhjadfhj'
    6     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'strrchr'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 '%5C'
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        DO_ICALL                                                 
    8     9        INIT_FCALL                                               'ltrim'
         10        INIT_FCALL                                               'substr'
         11        SEND_VAR                                                 !0
         12        INIT_FCALL                                               'strrchr'
         13        SEND_VAR                                                 !0
         14        SEND_VAL                                                 '%5C'
         15        DO_ICALL                                         $5      
         16      > JMPNZ_EX                                         ~6      $5, ->18
         17    >   BOOL                                             ~6      0
         18    >   SEND_VAL                                                 ~6
         19        DO_ICALL                                         $7      
         20        SEND_VAR                                                 $7
         21        SEND_VAL                                                 '%5C'
         22        DO_ICALL                                         $8      
         23        ECHO                                                     $8
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.17 ms | 1395 KiB | 21 Q