3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('error_reporting', E_ALL); ini_set('display_errors', 1); $arry= array("1"=>"20", "2"=>"20", "3"=>"30", "4"=>"40", "5"=>"20"); $results = array(); foreach($arry as $key=>$value) { $results[$value][] = $key; } var_dump($results);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 17
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 17
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/2Y1r7
function name:  (null)
number of ops:  22
compiled vars:  !0 = $arry, !1 = $results, !2 = $value, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'error_reporting'
          2        SEND_VAL                                                 32767
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'ini_set'
          5        SEND_VAL                                                 'display_errors'
          6        SEND_VAL                                                 1
          7        DO_ICALL                                                 
    7     8        ASSIGN                                                   !0, <array>
    9     9        ASSIGN                                                   !1, <array>
   10    10      > FE_RESET_R                                       $8      !0, ->17
         11    > > FE_FETCH_R                                       ~9      $8, !2, ->17
         12    >   ASSIGN                                                   !3, ~9
   11    13        FETCH_DIM_W                                      $11     !1, !2
         14        ASSIGN_DIM                                               $11
         15        OP_DATA                                                  !3
   10    16      > JMP                                                      ->11
         17    >   FE_FREE                                                  $8
   14    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !1
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.94 ms | 1395 KiB | 17 Q