3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data = iconv('UTF-8', 'ISO-8859-1', 'La Tronche Hôpital'); echo url_encode("<xml></xml>"); var_dump((new \DateTime())->sub(DateInterval::createFromDateString('54 days'))); die; $a = 0; $date = new \DateTime('2017-01-01'); $date2 = new \DateTime('2017-02-05'); $date3 = new \DateTime(); //var_dump($date->diff($date2)->format('%R%a days')); var_dump($date3->add(DateInterval::createFromDateString('36')));
based on qk2f9
Output for 7.0.0 - 7.3.0beta1
Fatal error: Uncaught Error: Call to undefined function url_encode() in /in/UE1oa:6 Stack trace: #0 {main} thrown in /in/UE1oa on line 6
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught Error: Call to undefined function url_encode() in /in/UE1oa:6 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
Fatal error: Call to undefined function url_encode() in /in/UE1oa on line 6
Process exited with code 255.