3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.94 ms | 1394 KiB | 19 Q