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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.38 ms | 1438 KiB | 16 Q