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/GGgjU
function name:  (null)
number of ops:  20
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        ASSIGN                                                   !1, <array>
    4     2        CONCAT                                           ~8      '%3Cspan+class%3D%22found%22%3E', !0
          3        CONCAT                                           ~9      ~8, '%3C%2Fspan%3E'
          4        ASSIGN                                                   !2, ~9
    5     5        FETCH_OBJ_R                                      ~11     !1, 'content'
          6        ASSIGN                                                   !3, ~11
    6     7        INIT_FCALL                                               'stristr'
          8        SEND_VAR                                                 !3
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $13     
         11        ASSIGN                                                   !4, $13
    7    12        INIT_FCALL                                               'str_replace'
         13        SEND_VAR                                                 !0
         14        SEND_VAR                                                 !2
         15        SEND_VAR                                                 !4
         16        DO_ICALL                                         $15     
         17        ASSIGN                                                   !5, $15
    8    18        ECHO                                                     !5
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.06 ms | 1395 KiB | 17 Q