3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fiv = '<p id="copyright">jdhjhdfjksdfhjhfksdjh<div>sdhsajhda<div>sadgashdghasgdasdS<DAsadasdasjdsahdasuhdasD>ASDAS>daslkdasjdiasduiasudasyduasydasyduiasuiasydiausyduisaydiuy</p>'; preg_match('/<p id="copyright">(.*)<\/p>$/i', $fiv, $k); if( $k[1] ){ echo str_replace($k[1], 'guilherme', $fiv); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 15
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/U9UpS
function name:  (null)
number of ops:  16
compiled vars:  !0 = $fiv, !1 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cp+id%3D%22copyright%22%3Ejdhjhdfjksdfhjhfksdjh%3Cdiv%3Esdhsajhda%3Cdiv%3EsadgashdghasgdasdS%3CDAsadasdasjdsahdasuhdasD%3EASDAS%3Edaslkdasjdiasduiasudasyduasydasyduiasuiasydiausyduisaydiuy%3C%2Fp%3E'
    3     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%3Cp+id%3D%22copyright%22%3E%28.%2A%29%3C%5C%2Fp%3E%24%2Fi'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    5     6        FETCH_DIM_R                                      ~4      !1, 1
          7      > JMPZ                                                     ~4, ->15
    6     8    >   INIT_FCALL                                               'str_replace'
          9        FETCH_DIM_R                                      ~5      !1, 1
         10        SEND_VAL                                                 ~5
         11        SEND_VAL                                                 'guilherme'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $6      
         14        ECHO                                                     $6
    7    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.46 ms | 1395 KiB | 17 Q