3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://www.gordon.se/?aguid%3fasdfasdfasdfasdfasdf'; $urlData = preg_split('/aguid\=/i', $url); print "urldata:" . print_r($urlData, 1); $aguid = preg_replace_callback('/([^\w{32}])/i', function($match){ return $match[0]; }, $urlData[1]); print "aguid:" . print_r($aguid, 1); var_dump($aguid);
Output for git.master, git.master_jit, rfc.property-hooks
urldata:Array ( [0] => http://www.gordon.se/?aguid%3fasdfasdfasdfasdfasdf ) Warning: Undefined array key 1 in /in/8vDU0 on line 7 Deprecated: preg_replace_callback(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /in/8vDU0 on line 5 aguid:string(0) ""

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
48.55 ms | 401 KiB | 8 Q