3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = '<p>Clashes broke out at one refinery on Tuesday when police broke up a blockade in Marseille. Workers at a large oil terminal in the port of Le Havre were due to go on strike on Thursday to block imports.Transport Minister Alain Vidalies said 40% of petrol stations around Paris were struggling to get fuel.Motorists have been panic-buying to avoid shortages.</p>'; $find="Transport Minister Alain Vidalies"; echo $pos=strpos($content, $find); $added_text = 'Honorable '; echo $newstr = substr_replace($content,$added_text,$pos, 0);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LKWBm
function name:  (null)
number of ops:  18
compiled vars:  !0 = $content, !1 = $find, !2 = $pos, !3 = $added_text, !4 = $newstr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cp%3EClashes+broke+out+at+one+refinery+on+Tuesday+when+police+broke+up+a+blockade+in+Marseille.+Workers+at+a+large+oil+terminal+in+the+port+of+Le+Havre+were+due+to+go+on+strike+on+Thursday+to+block+imports.Transport+Minister+Alain+Vidalies+said+40%25+of+petrol+stations+around+Paris+were+struggling+to+get+fuel.Motorists+have+been+panic-buying+to+avoid+shortages.%3C%2Fp%3E'
    4     1        ASSIGN                                                   !1, 'Transport+Minister+Alain+Vidalies'
    5     2        INIT_FCALL                                               'strpos'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $7      
          6        ASSIGN                                           ~8      !2, $7
          7        ECHO                                                     ~8
    7     8        ASSIGN                                                   !3, 'Honorable+'
    9     9        INIT_FCALL                                               'substr_replace'
         10        SEND_VAR                                                 !0
         11        SEND_VAR                                                 !3
         12        SEND_VAR                                                 !2
         13        SEND_VAL                                                 0
         14        DO_ICALL                                         $10     
         15        ASSIGN                                           ~11     !4, $10
         16        ECHO                                                     ~11
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.57 ms | 1005 KiB | 15 Q