3v4l.org

run code in 300+ PHP versions simultaneously
<?php $post = array( "name" => "John", "user" => "1" , "title" => "hello" , "uploader_0_name" => "pic.jpg", "uploader_0_status" => "done", "uploader_1_name" => "aaaa.jpg", "uploader_1_status" => "done", "uploader_2_name" => "Tulips.jpg", "uploader_2_status" => "failed", "uploader_count" => "3" ); foreach ($post as $key => $value) { if (preg_match('/^[a-z]+_(\d)_([a-z]+)$/', $key, $matches)) { $result[$matches[1]][$matches[2]] = $value; } } print_r($result);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 16
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 16
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 15
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 15
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/jKh89
function name:  (null)
number of ops:  21
compiled vars:  !0 = $post, !1 = $value, !2 = $key, !3 = $matches, !4 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   17     1      > FE_RESET_R                                       $6      !0, ->16
          2    > > FE_FETCH_R                                       ~7      $6, !1, ->16
          3    >   ASSIGN                                                   !2, ~7
   18     4        INIT_FCALL                                               'preg_match'
          5        SEND_VAL                                                 '%2F%5E%5Ba-z%5D%2B_%28%5Cd%29_%28%5Ba-z%5D%2B%29%24%2F'
          6        SEND_VAR                                                 !2
          7        SEND_REF                                                 !3
          8        DO_ICALL                                         $9      
          9      > JMPZ                                                     $9, ->15
   19    10    >   FETCH_DIM_R                                      ~10     !3, 1
         11        FETCH_DIM_R                                      ~12     !3, 2
         12        FETCH_DIM_W                                      $11     !4, ~10
         13        ASSIGN_DIM                                               $11, ~12
         14        OP_DATA                                                  !1
   17    15    > > JMP                                                      ->2
         16    >   FE_FREE                                                  $6
   23    17        INIT_FCALL                                               'print_r'
         18        SEND_VAR                                                 !4
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.09 ms | 1395 KiB | 17 Q