3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = <<< EOB /** preloader colors **/ @preloader_bg: #0081ff; @preloader_color: #fff; /** layout **/ @body_bg_image_position: ~'left top'; @body_bg_image_repeat: ~'no-repeat'; @body_bg_image_cover: ~'auto'; @body_bg_image: ~''; EOB; preg_match_all("~^@([^:]+):\s*([^;]+;?)$\K~m", $str, $matches); var_dump($matches);
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { [0]=> array(6) { [0]=> string(0) "" [1]=> string(0) "" [2]=> string(0) "" [3]=> string(0) "" [4]=> string(0) "" [5]=> string(0) "" } [1]=> array(6) { [0]=> string(12) "preloader_bg" [1]=> string(15) "preloader_color" [2]=> string(22) "body_bg_image_position" [3]=> string(20) "body_bg_image_repeat" [4]=> string(19) "body_bg_image_cover" [5]=> string(13) "body_bg_image" } [2]=> array(6) { [0]=> string(8) "#0081ff;" [1]=> string(5) "#fff;" [2]=> string(12) "~'left top';" [3]=> string(13) "~'no-repeat';" [4]=> string(8) "~'auto';" [5]=> string(4) "~'';" } }

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:
51.18 ms | 403 KiB | 8 Q