3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Hello this is dummy.test. in this string any character, any special character can appear. it is not a fixed type text and predefined. this string will not read manually check by the Programmer.Sorry for the bad English."; $test = strrpos($str, 'test'); $dummy = strrpos($str, 'dummy', -strlen($str) - $test); echo $dummy;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JSsaB
function name:  (null)
number of ops:  17
compiled vars:  !0 = $str, !1 = $test, !2 = $dummy
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Hello+this+is+dummy.test.+in+this+string++%0Aany+character%2C+any+special+character+can+appear.+it+is+not+a+fixed+type+%0Atext+and+predefined.+this+string+will+not+read+manually+check+by+the+%0AProgrammer.Sorry+for+the+bad+English.'
    8     1        INIT_FCALL                                               'strrpos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'test'
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    9     6        INIT_FCALL                                               'strrpos'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 'dummy'
          9        STRLEN                                           ~6      !0
         10        MUL                                              ~7      ~6, -1
         11        SUB                                              ~8      ~7, !1
         12        SEND_VAL                                                 ~8
         13        DO_ICALL                                         $9      
         14        ASSIGN                                                   !2, $9
   11    15        ECHO                                                     !2
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.27 ms | 1386 KiB | 15 Q