3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = '1-P,2-T,3-P,4-R,5-C,6-T,'; $data = explode(",", $t); print_r($data); for ($i = 0; $i <= count($data); $i++) { if (!empty($data[$i])) { if (strpos($data[$i], '-T') !== false) { $final = explode("-", $data[$i]); $row[]=$final[0]; } } } print_r($row);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => 1-P [1] => 2-T [2] => 3-P [3] => 4-R [4] => 5-C [5] => 6-T [6] => ) Array ( [0] => 2 [1] => 6 )

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