3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rss_fandango = file_get_contents('http://www.fandango.com/rss/top10boxoffice.rss'); $xml_fandango = simplexml_load_string($rss_fandango,null, LIBXML_NOCDATA); $data_fan = $xml_fandango->channel->item; $title = $item->title; $pos = strpos($title,'$'); $final = substr($title ,3 , strpos($title,'$') - 3); $earns = substr($title, $pos, -1); echo $pos . "<br/>"; echo $final . "<br/>"; echo $earns . "<br/>";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hg8cn
function name:  (null)
number of ops:  44
compiled vars:  !0 = $rss_fandango, !1 = $xml_fandango, !2 = $data_fan, !3 = $title, !4 = $item, !5 = $pos, !6 = $final, !7 = $earns
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'file_get_contents'
          1        SEND_VAL                                                 'http%3A%2F%2Fwww.fandango.com%2Frss%2Ftop10boxoffice.rss'
          2        DO_ICALL                                         $8      
          3        ASSIGN                                                   !0, $8
    4     4        INIT_FCALL                                               'simplexml_load_string'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 null
          7        SEND_VAL                                                 16384
          8        DO_ICALL                                         $10     
          9        ASSIGN                                                   !1, $10
    5    10        FETCH_OBJ_R                                      ~12     !1, 'channel'
         11        FETCH_OBJ_R                                      ~13     ~12, 'item'
         12        ASSIGN                                                   !2, ~13
    7    13        FETCH_OBJ_R                                      ~15     !4, 'title'
         14        ASSIGN                                                   !3, ~15
    8    15        INIT_FCALL                                               'strpos'
         16        SEND_VAR                                                 !3
         17        SEND_VAL                                                 '%24'
         18        DO_ICALL                                         $17     
         19        ASSIGN                                                   !5, $17
    9    20        INIT_FCALL                                               'substr'
         21        SEND_VAR                                                 !3
         22        SEND_VAL                                                 3
         23        INIT_FCALL                                               'strpos'
         24        SEND_VAR                                                 !3
         25        SEND_VAL                                                 '%24'
         26        DO_ICALL                                         $19     
         27        SUB                                              ~20     $19, 3
         28        SEND_VAL                                                 ~20
         29        DO_ICALL                                         $21     
         30        ASSIGN                                                   !6, $21
   10    31        INIT_FCALL                                               'substr'
         32        SEND_VAR                                                 !3
         33        SEND_VAR                                                 !5
         34        SEND_VAL                                                 -1
         35        DO_ICALL                                         $23     
         36        ASSIGN                                                   !7, $23
   13    37        CONCAT                                           ~25     !5, '%3Cbr%2F%3E'
         38        ECHO                                                     ~25
   14    39        CONCAT                                           ~26     !6, '%3Cbr%2F%3E'
         40        ECHO                                                     ~26
   15    41        CONCAT                                           ~27     !7, '%3Cbr%2F%3E'
         42        ECHO                                                     ~27
         43      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.02 ms | 1405 KiB | 21 Q