3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "\0".'-%00-' . implode(',',array_map('chr', range(1, 255))); var_dump($string); parse_str($string, $values); $count = 0; foreach($values as $key => $value) { echo var_export(++$count), ': ', var_dump($key), ' => ', var_dump($value), "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 23, Position 2 = 42
Branch analysis from position: 23
2 jumps found. (Code = 78) Position 1 = 24, Position 2 = 42
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
Branch analysis from position: 42
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 42
filename:       /in/t84Ki
function name:  (null)
number of ops:  44
compiled vars:  !0 = $string, !1 = $values, !2 = $count, !3 = $value, !4 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'implode'
          1        SEND_VAL                                                 '%2C'
          2        INIT_FCALL                                               'array_map'
          3        SEND_VAL                                                 'chr'
          4        INIT_FCALL                                               'range'
          5        SEND_VAL                                                 1
          6        SEND_VAL                                                 255
          7        DO_ICALL                                         $5      
          8        SEND_VAR                                                 $5
          9        DO_ICALL                                         $6      
         10        SEND_VAR                                                 $6
         11        DO_ICALL                                         $7      
         12        CONCAT                                           ~8      '%00-%2500-', $7
         13        ASSIGN                                                   !0, ~8
    4    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
    6    17        INIT_FCALL                                               'parse_str'
         18        SEND_VAR                                                 !0
         19        SEND_REF                                                 !1
         20        DO_ICALL                                                 
    8    21        ASSIGN                                                   !2, 0
    9    22      > FE_RESET_R                                       $13     !1, ->42
         23    > > FE_FETCH_R                                       ~14     $13, !3, ->42
         24    >   ASSIGN                                                   !4, ~14
   10    25        INIT_FCALL                                               'var_export'
         26        PRE_INC                                          ~16     !2
         27        SEND_VAL                                                 ~16
         28        DO_ICALL                                         $17     
         29        ECHO                                                     $17
         30        ECHO                                                     '%3A+'
         31        INIT_FCALL                                               'var_dump'
         32        SEND_VAR                                                 !4
         33        DO_ICALL                                         $18     
         34        ECHO                                                     $18
         35        ECHO                                                     '+%3D%3E+'
         36        INIT_FCALL                                               'var_dump'
         37        SEND_VAR                                                 !3
         38        DO_ICALL                                         $19     
         39        ECHO                                                     $19
         40        ECHO                                                     '%0A'
    9    41      > JMP                                                      ->23
         42    >   FE_FREE                                                  $13
   11    43      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.21 ms | 1400 KiB | 25 Q