3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ip = '192.168.21.0 - 192.168.21.255'; $ip = explode('-', $ip); list($lower, $upper) = $ip; print_r($lower); print_r($upper); $lower_dec = (float) sprintf("%u", ip2long($lower)); $upper_dec = (float) sprintf("%u", ip2long($upper));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IINUJ
function name:  (null)
number of ops:  37
compiled vars:  !0 = $ip, !1 = $lower, !2 = $upper, !3 = $lower_dec, !4 = $upper_dec
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '192.168.21.0+-+192.168.21.255'
    3     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '-'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !0, $6
    4     6        QM_ASSIGN                                        ~8      !0
          7        FETCH_LIST_R                                     $9      ~8, 0
          8        ASSIGN                                                   !1, $9
          9        FETCH_LIST_R                                     $11     ~8, 1
         10        ASSIGN                                                   !2, $11
         11        FREE                                                     ~8
    5    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
    6    15        INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                                 
    7    18        INIT_FCALL                                               'sprintf'
         19        SEND_VAL                                                 '%25u'
         20        INIT_FCALL                                               'ip2long'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                         $15     
         23        SEND_VAR                                                 $15
         24        DO_ICALL                                         $16     
         25        CAST                                          5  ~17     $16
         26        ASSIGN                                                   !3, ~17
    8    27        INIT_FCALL                                               'sprintf'
         28        SEND_VAL                                                 '%25u'
         29        INIT_FCALL                                               'ip2long'
         30        SEND_VAR                                                 !2
         31        DO_ICALL                                         $19     
         32        SEND_VAR                                                 $19
         33        DO_ICALL                                         $20     
         34        CAST                                          5  ~21     $20
         35        ASSIGN                                                   !4, ~21
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
201.45 ms | 1401 KiB | 21 Q