3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = '"dhcp-class-identifier ""Wireless Broadband R,outer""", "dhcp-client-identifier """"", "host-name ""Wireless_Broadband_Router""", "domain-name ""home"""'; $options = str_getcsv($string, ',', '"', '\\'); foreach ($options as $option) { $send_options .= "\tsend " . trim($option) . ";\n"; } echo $send_options;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 15
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 15
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/c93T0
function name:  (null)
number of ops:  18
compiled vars:  !0 = $string, !1 = $options, !2 = $option, !3 = $send_options
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%22dhcp-class-identifier+%22%22Wireless+Broadband+R%2Couter%22%22%22%2C+%22dhcp-client-identifier+%22%22%22%22%22%2C+%22host-name+%22%22Wireless_Broadband_Router%22%22%22%2C+%22domain-name+%22%22home%22%22%22'
    5     1        INIT_FCALL                                                   'str_getcsv'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     '%2C'
          4        SEND_VAL                                                     '%22'
          5        SEND_VAL                                                     '%5C'
          6        DO_ICALL                                             $5      
          7        ASSIGN                                                       !1, $5
    6     8      > FE_RESET_R                                           $7      !1, ->15
          9    > > FE_FETCH_R                                                   $7, !2, ->15
    7    10    >   FRAMELESS_ICALL_1                trim                ~8      !2
         11        CONCAT                                               ~9      '%09send+', ~8
         12        CONCAT                                               ~10     ~9, '%3B%0A'
         13        ASSIGN_OP                                         8          !3, ~10
    6    14      > JMP                                                          ->9
         15    >   FE_FREE                                                      $7
   10    16        ECHO                                                         !3
         17      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.08 ms | 2775 KiB | 9 Q