3v4l.org

run code in 300+ PHP versions simultaneously
<?php function formatLink($post) { if(preg_match('/^\>\>[0-9]{+}$/', $post)) { return "<font color=\"red\">".$post."</font>"; } else { return "<font color=\"#b7b7b7\">".$post."</font>"; } } echo formatLink(">>86721678");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jbaTK
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     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 = 10
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jbaTK
function name:  formatLink
number of ops:  14
compiled vars:  !0 = $post
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    5     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, ->10
    7     6    >   CONCAT                                           ~2      '%3Cfont+color%3D%22red%22%3E', !0
          7        CONCAT                                           ~3      ~2, '%3C%2Ffont%3E'
          8      > RETURN                                                   ~3
          9*       JMP                                                      ->13
   11    10    >   CONCAT                                           ~4      '%3Cfont+color%3D%22%23b7b7b7%22%3E', !0
         11        CONCAT                                           ~5      ~4, '%3C%2Ffont%3E'
         12      > RETURN                                                   ~5
   13    13*     > RETURN                                                   null

End of function formatlink

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.47 ms | 1398 KiB | 16 Q