3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.3 ms | 1395 KiB | 19 Q