3v4l.org

run code in 300+ 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/GoQdN
function name:  (null)
number of ops:  19
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%3E++++++Example.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                                               'substr'
          8        SEND_VAR                                                 !0
          9        SEND_VAR                                                 !1
         10        INIT_FCALL                                               'stripos'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 '%3C%2Ftitle%3E'
         13        DO_ICALL                                         $6      
         14        SUB                                              ~7      $6, !1
         15        SEND_VAL                                                 ~7
         16        DO_ICALL                                         $8      
         17        ECHO                                                     $8
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.82 ms | 1395 KiB | 17 Q