3v4l.org

run code in 300+ PHP versions simultaneously
<?php $urlString = 'www.me.com/hello/world'; $values = explode("/", $urlString); $arg1 = $values[1]; $arg2 = $values[2]; echo "Arg1: " . $arg1 . ' - ' . " Arg2: " . $arg2 . "\n"; print_r($values);
Output for git.master, git.master_jit, rfc.property-hooks
Arg1: hello - Arg2: world Array ( [0] => www.me.com [1] => hello [2] => world )

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:
170.45 ms | 405 KiB | 5 Q