3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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); }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(2) { [0]=> string(13) "date("Y-m-d")" [1]=> string(5) "Y-m-d" } http://checkerproxy.net/ru/