3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fb_username = 'ShuroSan'; $tw_username = 'phishnet'; $fb = @json_decode(file_get_contents('https://graph.facebook.com/'.$fb_username)); $fb_fans = number_format($fb->fan_count); $tw = @json_decode(file_get_contents('http://api.twitter.com/1/users/show.json?screen_name='.$tw_username)); $tw_followers = number_format($tw->followers_count); ?><html> <head> <title>Fans and Followers</title> </head> <body> Facebook fan count: <?=$fb_fans;?><br /> Twitter follower count: <?=$tw_followers;?><br /> </body> </html>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ktclW
function name:  (null)
number of ops:  38
compiled vars:  !0 = $fb_username, !1 = $tw_username, !2 = $fb, !3 = $fb_fans, !4 = $tw, !5 = $tw_followers
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'ShuroSan'
    3     1        ASSIGN                                                   !1, 'phishnet'
    5     2        BEGIN_SILENCE                                    ~8      
          3        INIT_FCALL                                               'json_decode'
          4        INIT_FCALL                                               'file_get_contents'
          5        CONCAT                                           ~9      'https%3A%2F%2Fgraph.facebook.com%2F', !0
          6        SEND_VAL                                                 ~9
          7        DO_ICALL                                         $10     
          8        SEND_VAR                                                 $10
          9        DO_ICALL                                         $11     
         10        END_SILENCE                                              ~8
         11        ASSIGN                                                   !2, $11
    6    12        INIT_FCALL                                               'number_format'
         13        FETCH_OBJ_R                                      ~13     !2, 'fan_count'
         14        SEND_VAL                                                 ~13
         15        DO_ICALL                                         $14     
         16        ASSIGN                                                   !3, $14
    8    17        BEGIN_SILENCE                                    ~16     
         18        INIT_FCALL                                               'json_decode'
         19        INIT_FCALL                                               'file_get_contents'
         20        CONCAT                                           ~17     'http%3A%2F%2Fapi.twitter.com%2F1%2Fusers%2Fshow.json%3Fscreen_name%3D', !1
         21        SEND_VAL                                                 ~17
         22        DO_ICALL                                         $18     
         23        SEND_VAR                                                 $18
         24        DO_ICALL                                         $19     
         25        END_SILENCE                                              ~16
         26        ASSIGN                                                   !4, $19
    9    27        INIT_FCALL                                               'number_format'
         28        FETCH_OBJ_R                                      ~21     !4, 'followers_count'
         29        SEND_VAL                                                 ~21
         30        DO_ICALL                                         $22     
         31        ASSIGN                                                   !5, $22
   10    32        ECHO                                                     '%3Chtml%3E%0A++++%3Chead%3E%0A++++++++%3Ctitle%3EFans+and+Followers%3C%2Ftitle%3E%0A++++%3C%2Fhead%3E%0A++++%3Cbody%3E%0A++++++++Facebook+fan+count%3A+'
   15    33        ECHO                                                     !3
         34        ECHO                                                     '%3Cbr+%2F%3E%0A++++++++Twitter+follower+count%3A+'
   16    35        ECHO                                                     !5
         36        ECHO                                                     '%3Cbr+%2F%3E%0A++++%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   18    37      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.88 ms | 1396 KiB | 19 Q