3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url='http://checkerproxy.net/ru/date("Y-m-d")'; if(preg_match('/date\(\".*?\"\)/i',$url,$mdate)){ echo $mdate[1]; echo preg_replace('/date\(\".*?\"\)/i', date("$1"), $url); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 18
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/ijNVY
function name:  (null)
number of ops:  19
compiled vars:  !0 = $url, !1 = $mdate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fcheckerproxy.net%2Fru%2Fdate%28%22Y-m-d%22%29'
    3     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2Fdate%5C%28%5C%22.%2A%3F%5C%22%5C%29%2Fi'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                         $3      
          6      > JMPZ                                                     $3, ->18
    4     7    >   FETCH_DIM_R                                      ~4      !1, 1
          8        ECHO                                                     ~4
    5     9        INIT_FCALL                                               'preg_replace'
         10        SEND_VAL                                                 '%2Fdate%5C%28%5C%22.%2A%3F%5C%22%5C%29%2Fi'
         11        INIT_FCALL                                               'date'
         12        SEND_VAL                                                 '%241'
         13        DO_ICALL                                         $5      
         14        SEND_VAR                                                 $5
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $6      
         17        ECHO                                                     $6
    6    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.14 ms | 1395 KiB | 19 Q