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>",$matches); var_dump($matches); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 18
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/6LCFA
function name:  (null)
number of ops:  19
compiled vars:  !0 = $matches, !1 = $fortune, !2 = $1
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                                         $5      
          6        TYPE_CHECK                                  1018          $5
          7      > JMPZ                                                     ~6, ->18
    5     8    >   INIT_FCALL                                               'preg_replace'
          9        SEND_VAL                                                 '%2F--%28%5B+a-zA-Z%5D%2B%29%2Fm'
         10        CONCAT                                           ~7      '%3Cp%3E+--+', !2
         11        CONCAT                                           ~8      ~7, '%3C%2Fp%3E'
         12        SEND_VAL                                                 ~8
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
    6    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
    7    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
266.48 ms | 1395 KiB | 20 Q