3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $m = array(); $x = "asdfadsf 'http://valami.lofasz?egy=ketto&harom=negy'blablabla"; preg_match("#\'(https?://[^\']+)\'#", $x, $m); $d = url_encode($m[1]); var_dump($d);
based on P7CrI
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function url_encode() in /in/KS3ns:9 Stack trace: #0 {main} thrown in /in/KS3ns on line 9
Process exited with code 255.
Output for 5.3.19 - 5.6.21
Fatal error: Call to undefined function url_encode() in /in/KS3ns on line 9
Process exited with code 255.