3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/<input.+>(.*)</m'; $str = ' <input type="radio" name="562" value="1" onclick> turtle.show() <br> <input type="radio" name="562" value="2"> turtle.showLocation() <br> <input type="radio" name="562" value="3"> turtle.showDirection() <br> <input type="radio" name="562" value="4"> turtle.showturtle() <br><input type="hidden" id="ans562" value="4">'; preg_match_all($re, $str, $matches); // Print the entire match result var_dump($matches);
Output for git.master_jit, git.master, rfc.property-hooks
array(2) { [0]=> array(4) { [0]=> string(65) "<input type="radio" name="562" value="1" onclick> turtle.show() <" [1]=> string(65) "<input type="radio" name="562" value="2"> turtle.showLocation() <" [2]=> string(67) "<input type="radio" name="562" value="3"> turtle.showDirection() <" [3]=> string(67) "<input type="radio" name="562" value="4"> turtle.showturtle() <br><" } [1]=> array(4) { [0]=> string(15) " turtle.show() " [1]=> string(23) " turtle.showLocation() " [2]=> string(25) " turtle.showDirection() " [3]=> 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:
111.36 ms | 407 KiB | 5 Q