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; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 77) Position 1 = 17, Position 2 = 23
Branch analysis from position: 17
2 jumps found. (Code = 78) Position 1 = 18, Position 2 = 23
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
Branch analysis from position: 10
2 jumps found. (Code = 77) Position 1 = 17, Position 2 = 23
Branch analysis from position: 17
Branch analysis from position: 23
filename:       /in/2mroU
function name:  (null)
number of ops:  28
compiled vars:  !0 = $response, !1 = $datos, !2 = $mp, !3 = $cast, !4 = $P, !5 = $page, !6 = $token2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%7B%22data%22%3A%5B%7B%22access_token%22%3A%22EAAby7f21xKABALPCThZC63i4LZAHZC7MaYbQ0E5gN%22%2C%22id%22%3A%22515968102105625%22%7D%2C%7B%22access_token%22%3A%22EAAby7f21xKABAK0zyfHCVNBE0Nn3g1XZCWuXzZA4T%22%2C%22id%22%3A%221338263602879836%22%7D%5D%2C%22paging%22%3A%7B%22cursors%22%3A%7B%22before%22%3A%22NTE1OTY4MTAyMTA1NjI1%22%2C%22after%22%3A%22MTMzODI2MzYwMjg3OTgzNgZDZD%22%7D%7D%7D'
    4     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%23%22access_token%22%3A%5B%5E%22%5D%2A%22%28%5B%5E%22%5D%2A%29%22%23'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                         $8      
          6      > JMPZ                                                     $8, ->10
    5     7    >   FETCH_DIM_R                                      ~9      !1, 1
          8        ASSIGN                                                   !2, ~9
          9      > JMP                                                      ->11
    8    10    >   ASSIGN                                                   !2, <array>
   12    11    >   INIT_FCALL                                               'implode'
         12        SEND_VAL                                                 '%2C'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                         $12     
         15        ASSIGN                                                   !3, $12
   15    16      > FE_RESET_R                                       $14     !2, ->23
         17    > > FE_FETCH_R                                               $14, !4, ->23
   17    18    >   FETCH_DIM_R                                      ~15     !4, 0
         19        ASSIGN                                                   !5, ~15
   18    20        FETCH_DIM_R                                      ~17     !4, 1
         21        ASSIGN                                                   !6, ~17
   15    22      > JMP                                                      ->17
         23    >   FE_FREE                                                  $14
   22    24        CONCAT                                           ~19     !6, '%3Cbr%2F%3E'
         25        ECHO                                                     ~19
   23    26        ECHO                                                     !5
   25    27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.77 ms | 1396 KiB | 17 Q