3v4l.org

run code in 500+ PHP versions simultaneously
<?php $html = "some html More <Head> Something <title>Example.com</title> </Head> Foo bar"; $pos = stripos($html, "<title>")+7; echo substr($html, $pos, stripos($html, "</title>")-$pos);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qvC40
function name:  (null)
number of ops:  16
compiled vars:  !0 = $html, !1 = $pos
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'some+html%0AMore%0A%0A%3CHead%3E%0A%0ASomething%0A%0A%3Ctitle%3EExample.com%3C%2Ftitle%3E%0A%0A%3C%2FHead%3E%0AFoo+bar'
   15     1        INIT_FCALL                                                   'stripos'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     '%3Ctitle%3E'
          4        DO_ICALL                                             $3      
          5        ADD                                                  ~4      $3, 7
          6        ASSIGN                                                       !1, ~4
   16     7        INIT_FCALL                                                   'stripos'
          8        SEND_VAR                                                     !0
          9        SEND_VAL                                                     '%3C%2Ftitle%3E'
         10        DO_ICALL                                             $6      
         11        SUB                                                  ~7      $6, !1
         12        FRAMELESS_ICALL_3                substr              ~8      !0, !1
         13        OP_DATA                                                      ~7
         14        ECHO                                                         ~8
         15      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.49 ms | 2277 KiB | 14 Q