3v4l.org

run code in 300+ PHP versions simultaneously
<?php $response = '{"data":[{"access_token":"EAAby7f21xKABALPCThZC63i4LZAHZC7MaYbQ0E5gN","id":"515968102105625"},{"access_token":"EAAby7f21xKABAK0zyfHCVNBE0Nn3g1XZCWuXzZA4T","id":"1338263602879836"}],"paging":{"cursors":{"before":"NTE1OTY4MTAyMTA1NjI1","after":"MTMzODI2MzYwMjg3OTgzNgZDZD"}}}'; if (preg_match_all('#"access_token":[^"]*"([^"]*)"#', $response, $datos)) { $mp = $datos[1]; } else { // Tipo array con clave error. $mp = array('error' => 'No existen Access Tokens'); } $cast = implode(',',$mp); foreach($mp as $P){ $page = $P[0]; $token2 = $P[1]; } echo $token2."<br/>"; echo $page; ?>
Output for git.master, git.master_jit, rfc.property-hooks
A<br/>E

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:
59.6 ms | 401 KiB | 8 Q