3v4l.org

run code in 500+ PHP versions simultaneously
<?php $first = "investor"; $last = "harga"; $str = "abstrak investor evaluasi analisis faktor mempengaruhi nilai intrinsik harga saham"; Echo substr($str, strpos($str, $first)+strlen($first), strpos($str, $last)-strpos($str, $first)-strlen($first));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vIWYs
function name:  (null)
number of ops:  15
compiled vars:  !0 = $first, !1 = $last, !2 = $str
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'investor'
    4     1        ASSIGN                                                       !1, 'harga'
    6     2        ASSIGN                                                       !2, 'abstrak+investor+evaluasi+analisis+faktor+mempengaruhi+nilai+intrinsik+harga+saham'
    8     3        FRAMELESS_ICALL_2                strpos              ~6      !2, !0
          4        STRLEN                                               ~7      !0
          5        ADD                                                  ~8      ~6, ~7
          6        FRAMELESS_ICALL_2                strpos              ~9      !2, !1
          7        FRAMELESS_ICALL_2                strpos              ~10     !2, !0
          8        SUB                                                  ~11     ~9, ~10
          9        STRLEN                                               ~12     !0
         10        SUB                                                  ~13     ~11, ~12
         11        FRAMELESS_ICALL_3                substr              ~14     !2, ~8
         12        OP_DATA                                                      ~13
         13        ECHO                                                         ~14
         14      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
174.04 ms | 2533 KiB | 13 Q