3v4l.org

run code in 300+ PHP versions simultaneously
<?php $query = "Google"; $queryReplace = "<span class=\"found\">".$query."</span>"; $descriptionContent = "Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for."; $foundQuery = stristr($descriptionContent, $query); $queryInDescription = str_replace($query, $queryReplace, $foundQuery);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kBXUT
function name:  (null)
number of ops:  17
compiled vars:  !0 = $query, !1 = $queryReplace, !2 = $descriptionContent, !3 = $foundQuery, !4 = $queryInDescription
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Google'
    3     1        CONCAT                                           ~6      '%3Cspan+class%3D%22found%22%3E', !0
          2        CONCAT                                           ~7      ~6, '%3C%2Fspan%3E'
          3        ASSIGN                                                   !1, ~7
    4     4        ASSIGN                                                   !2, 'Search+the+world%27s+information%2C+including+webpages%2C+images%2C+videos+and+more.+Google+has+many+special+features+to+help+you+find+exactly+what+you%27re+looking+for.'
    5     5        INIT_FCALL                                               'stristr'
          6        SEND_VAR                                                 !2
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $10     
          9        ASSIGN                                                   !3, $10
    6    10        INIT_FCALL                                               'str_replace'
         11        SEND_VAR                                                 !0
         12        SEND_VAR                                                 !1
         13        SEND_VAR                                                 !3
         14        DO_ICALL                                         $12     
         15        ASSIGN                                                   !4, $12
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.8 ms | 935 KiB | 18 Q