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)) ."\n"; $first = "tersedia"; $last = "timbul"; $str = "informasi tersedia investor evaluasi analisis faktor mempengaruhi kondisi perusahaan dimasa investor memperkecil kerugian timbul seminimal fluktuasi pertumbuhan perkembangan perusahaan"; 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/TutAG
function name:  (null)
number of ops:  30
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        CONCAT                                               ~15     ~14, '%0A'
         14        ECHO                                                         ~15
   10    15        ASSIGN                                                       !0, 'tersedia'
   11    16        ASSIGN                                                       !1, 'timbul'
   12    17        ASSIGN                                                       !2, 'informasi+tersedia+investor+evaluasi+analisis+faktor+mempengaruhi+kondisi+perusahaan+dimasa+investor+memperkecil+kerugian+timbul+seminimal+fluktuasi+pertumbuhan+perkembangan+perusahaan'
   14    18        FRAMELESS_ICALL_2                strpos              ~19     !2, !0
         19        STRLEN                                               ~20     !0
         20        ADD                                                  ~21     ~19, ~20
         21        FRAMELESS_ICALL_2                strpos              ~22     !2, !1
         22        FRAMELESS_ICALL_2                strpos              ~23     !2, !0
         23        SUB                                                  ~24     ~22, ~23
         24        STRLEN                                               ~25     !0
         25        SUB                                                  ~26     ~24, ~25
         26        FRAMELESS_ICALL_3                substr              ~27     !2, ~21
         27        OP_DATA                                                      ~26
         28        ECHO                                                         ~27
         29      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.23 ms | 2212 KiB | 13 Q