3v4l.org

run code in 300+ PHP versions simultaneously
<?php $path = null; $list = array('k1' => 'f1.txt', 'k2' => 'f2.txt', 'k3' => 'f3.txt', 'k4' => 'f4.txt'); $ipsStr = ';192.168.0.2;192.168.1.2;192.168.2.2;'; #$ipsStr = ''; $ips = explode(';', trim($ipsStr, ';')); /* $ipString = '<ul>'; if (is_array($ips)) { foreach ($ips as $ip) { $ipString .= '<li>' . $ip . '</li>'; } } $ipString .= '<ul>'; return $ipString; */ var_dump($ipsStr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L1Gt2
function name:  (null)
number of ops:  16
compiled vars:  !0 = $path, !1 = $list, !2 = $ipsStr, !3 = $ips
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, null
    3     1        ASSIGN                                                   !1, <array>
    4     2        ASSIGN                                                   !2, '%3B192.168.0.2%3B192.168.1.2%3B192.168.2.2%3B'
    6     3        INIT_FCALL                                               'explode'
          4        SEND_VAL                                                 '%3B'
          5        INIT_FCALL                                               'trim'
          6        SEND_VAR                                                 !2
          7        SEND_VAL                                                 '%3B'
          8        DO_ICALL                                         $7      
          9        SEND_VAR                                                 $7
         10        DO_ICALL                                         $8      
         11        ASSIGN                                                   !3, $8
   17    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.22 ms | 1398 KiB | 19 Q