3v4l.org

run code in 300+ PHP versions simultaneously
<?php $page_id = '189147671108377'; $page_access_token = '488543067934739|nMZH2r92f-6j2amnWaAUIrQZHlg'; $json = file_get_contents('https://graph.facebook.com/'.$page_id.'/posts?access_token='.$page_access_token); $data = json_decode($json); /* There are multiple properties which contain links, pictures, etc. of that particular status var_dump($data) to see all available properties. */ $posts = array(); foreach ($data->data as $post) { $posts[] = array( 'messgage' => $post->message, 'picture' => $post->picture, 'link' => $post->link, 'description' => $post->description ); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 28
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 28
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
filename:       /in/sPZu5
function name:  (null)
number of ops:  30
compiled vars:  !0 = $page_id, !1 = $page_access_token, !2 = $json, !3 = $data, !4 = $posts, !5 = $post
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '189147671108377'
    4     1        ASSIGN                                                   !1, '488543067934739%7CnMZH2r92f-6j2amnWaAUIrQZHlg'
    6     2        INIT_FCALL                                               'file_get_contents'
          3        CONCAT                                           ~8      'https%3A%2F%2Fgraph.facebook.com%2F', !0
          4        CONCAT                                           ~9      ~8, '%2Fposts%3Faccess_token%3D'
          5        CONCAT                                           ~10     ~9, !1
          6        SEND_VAL                                                 ~10
          7        DO_ICALL                                         $11     
          8        ASSIGN                                                   !2, $11
    9     9        INIT_FCALL                                               'json_decode'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                         $13     
         12        ASSIGN                                                   !3, $13
   15    13        ASSIGN                                                   !4, <array>
   17    14        FETCH_OBJ_R                                      ~16     !3, 'data'
         15      > FE_RESET_R                                       $17     ~16, ->28
         16    > > FE_FETCH_R                                               $17, !5, ->28
   20    17    >   FETCH_OBJ_R                                      ~19     !5, 'message'
         18        INIT_ARRAY                                       ~20     ~19, 'messgage'
   21    19        FETCH_OBJ_R                                      ~21     !5, 'picture'
         20        ADD_ARRAY_ELEMENT                                ~20     ~21, 'picture'
   22    21        FETCH_OBJ_R                                      ~22     !5, 'link'
         22        ADD_ARRAY_ELEMENT                                ~20     ~22, 'link'
   23    23        FETCH_OBJ_R                                      ~23     !5, 'description'
         24        ADD_ARRAY_ELEMENT                                ~20     ~23, 'description'
   19    25        ASSIGN_DIM                                               !4
   23    26        OP_DATA                                                  ~20
   17    27      > JMP                                                      ->16
         28    >   FE_FREE                                                  $17
   25    29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.29 ms | 1396 KiB | 17 Q