3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dom = new DOMDocument(); @$dom->loadHTML(file_get_contents('http://www.margonem.pl/?task=stats')); $element = $dom->getElementById('online_Ertill'); $content = $element->getElementsByTagName('p')->item(0)->textContent; $stats = explode(', ', trim($content)); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TAbh0
function name:  (null)
number of ops:  32
compiled vars:  !0 = $dom, !1 = $element, !2 = $content, !3 = $stats
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $4      'DOMDocument'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $4
    3     3        BEGIN_SILENCE                                    ~7      
          4        INIT_METHOD_CALL                                         !0, 'loadHTML'
          5        INIT_FCALL                                               'file_get_contents'
          6        SEND_VAL                                                 'http%3A%2F%2Fwww.margonem.pl%2F%3Ftask%3Dstats'
          7        DO_ICALL                                         $8      
          8        SEND_VAR_NO_REF_EX                                       $8
          9        DO_FCALL                                      0          
         10        END_SILENCE                                              ~7
    4    11        INIT_METHOD_CALL                                         !0, 'getElementById'
         12        SEND_VAL_EX                                              'online_Ertill'
         13        DO_FCALL                                      0  $10     
         14        ASSIGN                                                   !1, $10
    5    15        INIT_METHOD_CALL                                         !1, 'getElementsByTagName'
         16        SEND_VAL_EX                                              'p'
         17        DO_FCALL                                      0  $12     
         18        INIT_METHOD_CALL                                         $12, 'item'
         19        SEND_VAL_EX                                              0
         20        DO_FCALL                                      0  $13     
         21        FETCH_OBJ_R                                      ~14     $13, 'textContent'
         22        ASSIGN                                                   !2, ~14
    6    23        INIT_FCALL                                               'explode'
         24        SEND_VAL                                                 '%2C+'
         25        INIT_FCALL                                               'trim'
         26        SEND_VAR                                                 !2
         27        DO_ICALL                                         $16     
         28        SEND_VAR                                                 $16
         29        DO_ICALL                                         $17     
         30        ASSIGN                                                   !3, $17
    7    31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.92 ms | 1396 KiB | 19 Q