3v4l.org

run code in 300+ PHP versions simultaneously
<?php function formatLink($post) { if(preg_match('/^\>\>[0-9]{+}$/', $post)) { return "<font color=\"red\">".htmlentities($post)."</font>"; } else { return "<font color=\"#b7b7b7\">".htmlentities($post)."</font>"; } } echo formatLink(">>86721678");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TRuNG
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'formatlink'
          1        SEND_VAL                                                 '%3E%3E86721678'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function formatlink:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 13
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TRuNG
function name:  formatLink
number of ops:  20
compiled vars:  !0 = $post
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5E%5C%3E%5C%3E%5B0-9%5D%7B%2B%7D%24%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $1      
          5      > JMPZ                                                     $1, ->13
    5     6    >   INIT_FCALL                                               'htmlentities'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $2      
          9        CONCAT                                           ~3      '%3Cfont+color%3D%22red%22%3E', $2
         10        CONCAT                                           ~4      ~3, '%3C%2Ffont%3E'
         11      > RETURN                                                   ~4
         12*       JMP                                                      ->19
    9    13    >   INIT_FCALL                                               'htmlentities'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $5      
         16        CONCAT                                           ~6      '%3Cfont+color%3D%22%23b7b7b7%22%3E', $5
         17        CONCAT                                           ~7      ~6, '%3C%2Ffont%3E'
         18      > RETURN                                                   ~7
   11    19*     > RETURN                                                   null

End of function formatlink

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.75 ms | 1399 KiB | 18 Q