3v4l.org

run code in 300+ PHP versions simultaneously
<?php $link = "http://boards.4chan.org/vg/catalog"; $linkcontents = file_get_contents($link); $lines = explode("\n", $linkcontents); $jsstart = explode("var catalog = ", $lines[10]); $jssend = explode(" var", $jsstart[1]); $json = $jssend[0]; var_dump($linkcontents); var_dump($lines); echo $jsstart[1]; echo $json;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u17Bc
function name:  (null)
number of ops:  34
compiled vars:  !0 = $link, !1 = $linkcontents, !2 = $lines, !3 = $jsstart, !4 = $jssend, !5 = $json
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fboards.4chan.org%2Fvg%2Fcatalog'
    3     1        INIT_FCALL                                               'file_get_contents'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $7      
          4        ASSIGN                                                   !1, $7
    4     5        INIT_FCALL                                               'explode'
          6        SEND_VAL                                                 '%0A'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $9      
          9        ASSIGN                                                   !2, $9
    5    10        INIT_FCALL                                               'explode'
         11        SEND_VAL                                                 'var+catalog+%3D+'
         12        FETCH_DIM_R                                      ~11     !2, 10
         13        SEND_VAL                                                 ~11
         14        DO_ICALL                                         $12     
         15        ASSIGN                                                   !3, $12
    6    16        INIT_FCALL                                               'explode'
         17        SEND_VAL                                                 '++var'
         18        FETCH_DIM_R                                      ~14     !3, 1
         19        SEND_VAL                                                 ~14
         20        DO_ICALL                                         $15     
         21        ASSIGN                                                   !4, $15
    7    22        FETCH_DIM_R                                      ~17     !4, 0
         23        ASSIGN                                                   !5, ~17
    8    24        INIT_FCALL                                               'var_dump'
         25        SEND_VAR                                                 !1
         26        DO_ICALL                                                 
    9    27        INIT_FCALL                                               'var_dump'
         28        SEND_VAR                                                 !2
         29        DO_ICALL                                                 
   10    30        FETCH_DIM_R                                      ~21     !3, 1
         31        ECHO                                                     ~21
   11    32        ECHO                                                     !5
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.8 ms | 1388 KiB | 19 Q