3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // /^\/foo\/([^\/]+?)\/?$/i // if (preg_match('/^api\/booking\/([^\/]+?)\/?$/i', 'api/booking/:ff', $m)) { var_dump($m); } var_dump(explode('/', 'api/booking/:id/:osa'));
Output for 7.3.0alpha1
array(2) { [0]=> string(15) "api/booking/:ff" [1]=> string(3) ":ff" } array(4) { [0]=> string(3) "api" [1]=> string(7) "booking" [2]=> string(3) ":id" [3]=> string(4) ":osa" }