3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c = 'App\Bar\FooControllerABC'; var_dump(strrpos($c, 'Controller')); var_dump('Controller' == substr($c, -10));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/umaZC
function name:  (null)
number of ops:  17
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'App%5CBar%5CFooControllerABC'
    4     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'strrpos'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 'Controller'
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
    5     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'substr'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 -10
         12        DO_ICALL                                         $4      
         13        IS_EQUAL                                         ~5      $4, 'Controller'
         14        SEND_VAL                                                 ~5
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.69 ms | 1394 KiB | 19 Q