3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get_page_stats($domain) { $str = file_get_contents($domain); $str = strip_tags(strtolower($str)); $words = str_word_count($str, 1); var_dump($words); } get_page_stats('http://google.com');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SU9CN
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'get_page_stats'
          1        SEND_VAL                                                 'http%3A%2F%2Fgoogle.com'
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Function get_page_stats:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SU9CN
function name:  get_page_stats
number of ops:  21
compiled vars:  !0 = $domain, !1 = $str, !2 = $words
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        INIT_FCALL                                               'file_get_contents'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
    4     5        INIT_FCALL                                               'strip_tags'
          6        INIT_FCALL                                               'strtolower'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $5      
          9        SEND_VAR                                                 $5
         10        DO_ICALL                                         $6      
         11        ASSIGN                                                   !1, $6
    5    12        INIT_FCALL                                               'str_word_count'
         13        SEND_VAR                                                 !1
         14        SEND_VAL                                                 1
         15        DO_ICALL                                         $8      
         16        ASSIGN                                                   !2, $8
    6    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                                 
    7    20      > RETURN                                                   null

End of function get_page_stats

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.3 ms | 1398 KiB | 24 Q