3v4l.org

run code in 300+ PHP versions simultaneously
<?php function latestTweet($nick) { $tweet = simplexml_load_file("http://api.twitter.com/1/statuses/user_timeline/{$nick}.xml"); echo $tweet->status[0]->text; } latestTweet('ZXeDroid');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/15r1a
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'latesttweet'
          1        SEND_VAL                                                 'ZXeDroid'
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Function latesttweet:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/15r1a
function name:  latestTweet
number of ops:  13
compiled vars:  !0 = $nick, !1 = $tweet
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        INIT_FCALL                                               'simplexml_load_file'
          2        ROPE_INIT                                     3  ~3      'http%3A%2F%2Fapi.twitter.com%2F1%2Fstatuses%2Fuser_timeline%2F'
          3        ROPE_ADD                                      1  ~3      ~3, !0
          4        ROPE_END                                      2  ~2      ~3, '.xml'
          5        SEND_VAL                                                 ~2
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
    4     8        FETCH_OBJ_R                                      ~7      !1, 'status'
          9        FETCH_DIM_R                                      ~8      ~7, 0
         10        FETCH_OBJ_R                                      ~9      ~8, 'text'
         11        ECHO                                                     ~9
    5    12      > RETURN                                                   null

End of function latesttweet

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.77 ms | 1397 KiB | 16 Q