3v4l.org

run code in 300+ PHP versions simultaneously
<?php function spam($email) { $email = 'aaa@eqreqrq.sgwgfwr'; $email = preg_replace("/\./", " dot ", $email); $email = preg_replace("/@/", " AT ", $email); return $email; } function markup($filename, $use_me) { $contents = '$email'; $contents = preg_replace("/(\[email (.*)\])/e", "spam(\"\\2\")", $contents); $contents = preg_replace("/\[/", "<", $contents); $contents = preg_replace("/\]/", ">", $contents); return $contents; } $output = markup($argv[1], $argv[2]); $output2 = spam($argv[1]); print $output2; print $output;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tSP55
function name:  (null)
number of ops:  15
compiled vars:  !0 = $output, !1 = $argv, !2 = $output2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   INIT_FCALL                                               'markup'
          1        FETCH_DIM_R                                      ~3      !1, 1
          2        SEND_VAL                                                 ~3
          3        FETCH_DIM_R                                      ~4      !1, 2
          4        SEND_VAL                                                 ~4
          5        DO_FCALL                                      0  $5      
          6        ASSIGN                                                   !0, $5
   26     7        INIT_FCALL                                               'spam'
          8        FETCH_DIM_R                                      ~7      !1, 1
          9        SEND_VAL                                                 ~7
         10        DO_FCALL                                      0  $8      
         11        ASSIGN                                                   !2, $8
   28    12        ECHO                                                     !2
   29    13        ECHO                                                     !0
         14      > RETURN                                                   1

Function spam:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tSP55
function name:  spam
number of ops:  16
compiled vars:  !0 = $email
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    6     1        ASSIGN                                                   !0, 'aaa%40eqreqrq.sgwgfwr'
    7     2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAL                                                 '%2F%5C.%2F'
          4        SEND_VAL                                                 '+dot+'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $2      
          7        ASSIGN                                                   !0, $2
    8     8        INIT_FCALL                                               'preg_replace'
          9        SEND_VAL                                                 '%2F%40%2F'
         10        SEND_VAL                                                 '+AT+'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $4      
         13        ASSIGN                                                   !0, $4
   10    14      > RETURN                                                   !0
   11    15*     > RETURN                                                   null

End of function spam

Function markup:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tSP55
function name:  markup
number of ops:  23
compiled vars:  !0 = $filename, !1 = $use_me, !2 = $contents
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   15     2        ASSIGN                                                   !2, '%24email'
   17     3        INIT_FCALL                                               'preg_replace'
          4        SEND_VAL                                                 '%2F%28%5C%5Bemail+%28.%2A%29%5C%5D%29%2Fe'
          5        SEND_VAL                                                 'spam%28%22%5C2%22%29'
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !2, $4
   18     9        INIT_FCALL                                               'preg_replace'
         10        SEND_VAL                                                 '%2F%5C%5B%2F'
         11        SEND_VAL                                                 '%3C'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                         $6      
         14        ASSIGN                                                   !2, $6
   19    15        INIT_FCALL                                               'preg_replace'
         16        SEND_VAL                                                 '%2F%5C%5D%2F'
         17        SEND_VAL                                                 '%3E'
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                         $8      
         20        ASSIGN                                                   !2, $8
   21    21      > RETURN                                                   !2
   22    22*     > RETURN                                                   null

End of function markup

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.17 ms | 1403 KiB | 17 Q