3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matches=null; $fortune = 'The rain in Spain<br> -- whoknows'; if (strpos($fortune,"--") !== FALSE) { preg_replace('/--([ a-zA-Z]+)*/m',"<p>$1</p>",$fortune,$matches); var_dump($matches); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 17
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/Dh3Ai
function name:  (null)
number of ops:  18
compiled vars:  !0 = $matches, !1 = $fortune
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, null
    3     1        ASSIGN                                                   !1, 'The+rain+in+Spain%3Cbr%3E+--+whoknows'
    4     2        INIT_FCALL                                               'strpos'
          3        SEND_VAR                                                 !1
          4        SEND_VAL                                                 '--'
          5        DO_ICALL                                         $4      
          6        TYPE_CHECK                                  1018          $4
          7      > JMPZ                                                     ~5, ->17
    5     8    >   INIT_FCALL                                               'preg_replace'
          9        SEND_VAL                                                 '%2F--%28%5B+a-zA-Z%5D%2B%29%2A%2Fm'
         10        SEND_VAL                                                 '%3Cp%3E%241%3C%2Fp%3E'
         11        SEND_VAR                                                 !1
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
    7    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
    8    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.05 ms | 1395 KiB | 19 Q