3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fb_username = 'ShuroSan'; $fb = @json_decode(file_get_contents('https://graph.facebook.com/'.$fb_username)); $fb_fans = number_format($fb->fan_count); ?><html> <head> <title>Fans and Followers</title> </head> <body> Facebook fan count: <?=$fb_fans;?><br /> </body> </html>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/k18vF
function name:  (null)
number of ops:  20
compiled vars:  !0 = $fb_username, !1 = $fb, !2 = $fb_fans
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'ShuroSan'
    4     1        BEGIN_SILENCE                                    ~4      
          2        INIT_FCALL                                               'json_decode'
          3        INIT_FCALL                                               'file_get_contents'
          4        CONCAT                                           ~5      'https%3A%2F%2Fgraph.facebook.com%2F', !0
          5        SEND_VAL                                                 ~5
          6        DO_ICALL                                         $6      
          7        SEND_VAR                                                 $6
          8        DO_ICALL                                         $7      
          9        END_SILENCE                                              ~4
         10        ASSIGN                                                   !1, $7
    5    11        INIT_FCALL                                               'number_format'
         12        FETCH_OBJ_R                                      ~9      !1, 'fan_count'
         13        SEND_VAL                                                 ~9
         14        DO_ICALL                                         $10     
         15        ASSIGN                                                   !2, $10
    7    16        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+'
   12    17        ECHO                                                     !2
         18        ECHO                                                     '%3Cbr+%2F%3E%0A++++%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   14    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.48 ms | 1395 KiB | 19 Q