3v4l.org

run code in 300+ PHP versions simultaneously
<?php $PlaceId = 18924269; if($PlaceId=="" or $PlaceId==nil){ die(); } $PlaceURL = "http://www.roblox.com/zmidnightapi-place?id=" . $PlaceId; $PlaceContent = file_get_contents($PlaceURL); $Start = strpos($PlaceContent, "Favorited:</span><span class=\"stat\">") + strlen("Favorited:</span><span class=\"stat\">"); $End = strpos($PlaceContent, "</span>", $Start); $TABLE = array( FavoritesStandard => substr($PlaceContent, $Start, $End - $Start), FavoritesInt => str_replace(',','',substr($PlaceContent, $Start, $End - $Start)), ); echo json_encode($TABLE); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 3, Position 2 = 6
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/re7Lv
function name:  (null)
number of ops:  53
compiled vars:  !0 = $PlaceId, !1 = $PlaceURL, !2 = $PlaceContent, !3 = $Start, !4 = $End, !5 = $TABLE
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 18924269
    3     1        IS_EQUAL                                         ~7      !0, ''
          2      > JMPNZ_EX                                         ~7      ~7, ->6
          3    >   FETCH_CONSTANT                                   ~8      'nil'
          4        IS_EQUAL                                         ~9      !0, ~8
          5        BOOL                                             ~7      ~9
          6    > > JMPZ                                                     ~7, ->8
          7    > > EXIT                                                     
    4     8    >   CONCAT                                           ~10     'http%3A%2F%2Fwww.roblox.com%2Fzmidnightapi-place%3Fid%3D', !0
          9        ASSIGN                                                   !1, ~10
    5    10        INIT_FCALL                                               'file_get_contents'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $12     
         13        ASSIGN                                                   !2, $12
    6    14        INIT_FCALL                                               'strpos'
         15        SEND_VAR                                                 !2
         16        SEND_VAL                                                 'Favorited%3A%3C%2Fspan%3E%3Cspan+class%3D%22stat%22%3E'
         17        DO_ICALL                                         $14     
         18        ADD                                              ~15     $14, 36
         19        ASSIGN                                                   !3, ~15
    7    20        INIT_FCALL                                               'strpos'
         21        SEND_VAR                                                 !2
         22        SEND_VAL                                                 '%3C%2Fspan%3E'
         23        SEND_VAR                                                 !3
         24        DO_ICALL                                         $17     
         25        ASSIGN                                                   !4, $17
    9    26        FETCH_CONSTANT                                   ~19     'FavoritesStandard'
         27        INIT_FCALL                                               'substr'
         28        SEND_VAR                                                 !2
         29        SEND_VAR                                                 !3
         30        SUB                                              ~20     !4, !3
         31        SEND_VAL                                                 ~20
         32        DO_ICALL                                         $21     
         33        INIT_ARRAY                                       ~22     $21, ~19
   10    34        FETCH_CONSTANT                                   ~23     'FavoritesInt'
         35        INIT_FCALL                                               'str_replace'
         36        SEND_VAL                                                 '%2C'
         37        SEND_VAL                                                 ''
         38        INIT_FCALL                                               'substr'
         39        SEND_VAR                                                 !2
         40        SEND_VAR                                                 !3
         41        SUB                                              ~24     !4, !3
         42        SEND_VAL                                                 ~24
         43        DO_ICALL                                         $25     
         44        SEND_VAR                                                 $25
         45        DO_ICALL                                         $26     
         46        ADD_ARRAY_ELEMENT                                ~22     $26, ~23
    8    47        ASSIGN                                                   !5, ~22
   12    48        INIT_FCALL                                               'json_encode'
         49        SEND_VAR                                                 !5
         50        DO_ICALL                                         $28     
         51        ECHO                                                     $28
   13    52      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.71 ms | 1400 KiB | 23 Q