3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filestring = file_get_contents('http://www.ipdeny.com/ipblocks/data/countries/cn.zone'); $filearray = explode("\n", $filestring); while (list($var, $val) = each($filearray)) { ++$var; $val = trim($val); print "Line $var: $val<br />"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 10
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 10
Branch analysis from position: 29
Branch analysis from position: 10
filename:       /in/YmBdW
function name:  (null)
number of ops:  30
compiled vars:  !0 = $filestring, !1 = $filearray, !2 = $var, !3 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'file_get_contents'
          1        SEND_VAL                                                 'http%3A%2F%2Fwww.ipdeny.com%2Fipblocks%2Fdata%2Fcountries%2Fcn.zone'
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    3     4        INIT_FCALL                                               'explode'
          5        SEND_VAL                                                 '%0A'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !1, $6
    5     9      > JMP                                                      ->21
    6    10    >   PRE_INC                                                  !2
    7    11        INIT_FCALL                                               'trim'
         12        SEND_VAR                                                 !3
         13        DO_ICALL                                         $9      
         14        ASSIGN                                                   !3, $9
    8    15        ROPE_INIT                                     5  ~12     'Line+'
         16        ROPE_ADD                                      1  ~12     ~12, !2
         17        ROPE_ADD                                      2  ~12     ~12, '%3A+'
         18        ROPE_ADD                                      3  ~12     ~12, !3
         19        ROPE_END                                      4  ~11     ~12, '%3Cbr+%2F%3E'
         20        ECHO                                                     ~11
    5    21    >   INIT_FCALL_BY_NAME                                       'each'
         22        SEND_VAR_EX                                              !1
         23        DO_FCALL                                      0  $15     
         24        FETCH_LIST_R                                     $16     $15, 0
         25        ASSIGN                                                   !2, $16
         26        FETCH_LIST_R                                     $18     $15, 1
         27        ASSIGN                                                   !3, $18
         28      > JMPNZ                                                    $15, ->10
    9    29    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.99 ms | 1396 KiB | 19 Q