3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //$data=new DateTime('31/2/2013'); print_r($data); echo ((31)%31)."\n"; echo date('d'); echo ((30+1)%31)."\n"; //echo $data->add(new DateInterval('P1D'))."\n"; if(preg_match('#^(\d{2})/(\d{2})/(\d{4})$#', '10/12/2010', $matches)) echo "Match"; else echo "dont match"; print_r($matches);
Output for 5.0.4 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
Notice: Undefined variable: data in /in/IUE4Q on line 4 0 100 MatchArray ( [0] => 10/12/2010 [1] => 10 [2] => 12 [3] => 2010 )
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: data in /in/IUE4Q on line 4 0 100 MatchArray ( [0] => 10/12/2010 [1] => 10 [2] => 12 [3] => 2010 )