3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "INVOICE=123456:STATUS=PAID:PAY_TIME=20150525233333:STAN=123456:BCODE=ddd123 INVOICE=123457:STATUS=EXPIRED INVOICE=123458:STATUS=DENIED"; $lines = explode("\n", $text); foreach ($lines as $line) { if (preg_match_all('/(.+)=(.+?)/', $line, $matches)) { print_r($matches); } }
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [0] => INVOICE=123456:STATUS=PAID:PAY_TIME=20150525233333:STAN=123456:BCODE=d ) [1] => Array ( [0] => INVOICE=123456:STATUS=PAID:PAY_TIME=20150525233333:STAN=123456:BCODE ) [2] => Array ( [0] => d ) ) Array ( [0] => Array ( [0] => INVOICE=123457:STATUS=E ) [1] => Array ( [0] => INVOICE=123457:STATUS ) [2] => Array ( [0] => E ) ) Array ( [0] => Array ( [0] => INVOICE=123458:STATUS=D ) [1] => Array ( [0] => INVOICE=123458:STATUS ) [2] => Array ( [0] => D ) )

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