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)){ var_dump($mdate); 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 = 19
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/6iXmM
function name:  (null)
number of ops:  20
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, ->19
    4     7    >   INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
    5    10        INIT_FCALL                                               'preg_replace'
         11        SEND_VAL                                                 '%2Fdate%5C%28%5C%22.%2A%3F%5C%22%5C%29%2Fi'
         12        INIT_FCALL                                               'date'
         13        SEND_VAL                                                 '%241'
         14        DO_ICALL                                         $5      
         15        SEND_VAR                                                 $5
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $6      
         18        ECHO                                                     $6
    6    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.69 ms | 1399 KiB | 21 Q