3v4l.org

run code in 300+ 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 = 17
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 17
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/c93T0
function name:  (null)
number of ops:  20
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, ->17
          9    > > FE_FETCH_R                                               $7, !2, ->17
    7    10    >   INIT_FCALL                                               'trim'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                         $8      
         13        CONCAT                                           ~9      '%09send+', $8
         14        CONCAT                                           ~10     ~9, '%3B%0A'
         15        ASSIGN_OP                                     8          !3, ~10
    6    16      > JMP                                                      ->9
         17    >   FE_FREE                                                  $7
   10    18        ECHO                                                     !3
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.6 ms | 1395 KiB | 17 Q