3v4l.org

run code in 300+ PHP versions simultaneously
<?php $PlaceId = 18924269; $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
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YmG2p
function name:  (null)
number of ops:  46
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        CONCAT                                           ~7      'http%3A%2F%2Fwww.roblox.com%2Fzmidnightapi-place%3Fid%3D', !0
          2        ASSIGN                                                   !1, ~7
    4     3        INIT_FCALL                                               'file_get_contents'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $9      
          6        ASSIGN                                                   !2, $9
    5     7        INIT_FCALL                                               'strpos'
          8        SEND_VAR                                                 !2
          9        SEND_VAL                                                 'Favorited%3A%3C%2Fspan%3E%3Cspan+class%3D%22stat%22%3E'
         10        DO_ICALL                                         $11     
         11        ADD                                              ~12     $11, 36
         12        ASSIGN                                                   !3, ~12
    6    13        INIT_FCALL                                               'strpos'
         14        SEND_VAR                                                 !2
         15        SEND_VAL                                                 '%3C%2Fspan%3E'
         16        SEND_VAR                                                 !3
         17        DO_ICALL                                         $14     
         18        ASSIGN                                                   !4, $14
    8    19        FETCH_CONSTANT                                   ~16     'FavoritesStandard'
         20        INIT_FCALL                                               'substr'
         21        SEND_VAR                                                 !2
         22        SEND_VAR                                                 !3
         23        SUB                                              ~17     !4, !3
         24        SEND_VAL                                                 ~17
         25        DO_ICALL                                         $18     
         26        INIT_ARRAY                                       ~19     $18, ~16
    9    27        FETCH_CONSTANT                                   ~20     'FavoritesInt'
         28        INIT_FCALL                                               'str_replace'
         29        SEND_VAL                                                 '%2C'
         30        SEND_VAL                                                 ''
         31        INIT_FCALL                                               'substr'
         32        SEND_VAR                                                 !2
         33        SEND_VAR                                                 !3
         34        SUB                                              ~21     !4, !3
         35        SEND_VAL                                                 ~21
         36        DO_ICALL                                         $22     
         37        SEND_VAR                                                 $22
         38        DO_ICALL                                         $23     
         39        ADD_ARRAY_ELEMENT                                ~19     $23, ~20
    7    40        ASSIGN                                                   !5, ~19
   11    41        INIT_FCALL                                               'json_encode'
         42        SEND_VAR                                                 !5
         43        DO_ICALL                                         $25     
         44        ECHO                                                     $25
   12    45      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.81 ms | 1400 KiB | 23 Q