3v4l.org

run code in 300+ PHP versions simultaneously
<?php $query = "Google"; $elasticaResult = array(content=>"Google Account, you need to have JavaScript enabled in your browser. Refresh this page after you have enabled JavaScript. Create a new Google Account Name First name First Last name Last"); $queryReplace = "<span class=\"found\">".$query."</span>"; $descriptionContent = $elasticaResult->content; $foundQuery = stristr($descriptionContent, $query); $queryInDescription = str_replace($query, $queryReplace, $foundQuery); echo $queryInDescription;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1Y4EL
function name:  (null)
number of ops:  22
compiled vars:  !0 = $query, !1 = $elasticaResult, !2 = $queryReplace, !3 = $descriptionContent, !4 = $foundQuery, !5 = $queryInDescription
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Google'
    3     1        FETCH_CONSTANT                                   ~7      'content'
          2        INIT_ARRAY                                       ~8      'Google+Account%2C+you+need+to+have+JavaScript+enabled+in+your+browser.+Refresh+this+page+after+you+have+enabled+JavaScript.+Create+a+new+Google+Account+Name+First+name+First+Last+name+Last', ~7
          3        ASSIGN                                                   !1, ~8
    4     4        CONCAT                                           ~10     '%3Cspan+class%3D%22found%22%3E', !0
          5        CONCAT                                           ~11     ~10, '%3C%2Fspan%3E'
          6        ASSIGN                                                   !2, ~11
    5     7        FETCH_OBJ_R                                      ~13     !1, 'content'
          8        ASSIGN                                                   !3, ~13
    6     9        INIT_FCALL                                               'stristr'
         10        SEND_VAR                                                 !3
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $15     
         13        ASSIGN                                                   !4, $15
    7    14        INIT_FCALL                                               'str_replace'
         15        SEND_VAR                                                 !0
         16        SEND_VAR                                                 !2
         17        SEND_VAR                                                 !4
         18        DO_ICALL                                         $17     
         19        ASSIGN                                                   !5, $17
    8    20        ECHO                                                     !5
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.56 ms | 1395 KiB | 17 Q