3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hashs = array(); $vals = array(); for($i = 0; $i < 20; $i++){ $hashs[] = md5(rand()); $values = array(); for($i = 0; $i < 20; $i++){ $values[] = array( "Preis" => rand() ); } $vals[] = $values; } $groups = array_combine($hashs, $vals); var_dump($groups); $prices = array_column($groups[$hashs[0]], "Preis"); echo max($prices); echo ($m == max($prices))?"yes":"nope";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 4
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 51, Position 2 = 53
Branch analysis from position: 51
1 jumps found. (Code = 42) Position 1 = 54
Branch analysis from position: 54
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 53
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 14
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 4
Branch analysis from position: 27
Branch analysis from position: 4
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 14
Branch analysis from position: 22
Branch analysis from position: 14
filename:       /in/QJE0A
function name:  (null)
number of ops:  56
compiled vars:  !0 = $hashs, !1 = $vals, !2 = $i, !3 = $values, !4 = $groups, !5 = $prices, !6 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    4     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->25
    5     4    >   INIT_FCALL                                               'md5'
          5        INIT_FCALL                                               'rand'
          6        DO_ICALL                                         $11     
          7        SEND_VAR                                                 $11
          8        DO_ICALL                                         $12     
          9        ASSIGN_DIM                                               !0
         10        OP_DATA                                                  $12
    6    11        ASSIGN                                                   !3, <array>
    7    12        ASSIGN                                                   !2, 0
         13      > JMP                                                      ->20
    9    14    >   INIT_FCALL                                               'rand'
         15        DO_ICALL                                         $16     
         16        INIT_ARRAY                                       ~17     $16, 'Preis'
    8    17        ASSIGN_DIM                                               !3
    9    18        OP_DATA                                                  ~17
    7    19        PRE_INC                                                  !2
         20    >   IS_SMALLER                                               !2, 20
         21      > JMPNZ                                                    ~19, ->14
   12    22    >   ASSIGN_DIM                                               !1
         23        OP_DATA                                                  !3
    4    24        PRE_INC                                                  !2
         25    >   IS_SMALLER                                               !2, 20
         26      > JMPNZ                                                    ~22, ->4
   15    27    >   INIT_FCALL                                               'array_combine'
         28        SEND_VAR                                                 !0
         29        SEND_VAR                                                 !1
         30        DO_ICALL                                         $23     
         31        ASSIGN                                                   !4, $23
   16    32        INIT_FCALL                                               'var_dump'
         33        SEND_VAR                                                 !4
         34        DO_ICALL                                                 
   18    35        INIT_FCALL                                               'array_column'
         36        FETCH_DIM_R                                      ~26     !0, 0
         37        FETCH_DIM_R                                      ~27     !4, ~26
         38        SEND_VAL                                                 ~27
         39        SEND_VAL                                                 'Preis'
         40        DO_ICALL                                         $28     
         41        ASSIGN                                                   !5, $28
   19    42        INIT_FCALL                                               'max'
         43        SEND_VAR                                                 !5
         44        DO_ICALL                                         $30     
         45        ECHO                                                     $30
   20    46        INIT_FCALL                                               'max'
         47        SEND_VAR                                                 !5
         48        DO_ICALL                                         $31     
         49        IS_EQUAL                                                 !6, $31
         50      > JMPZ                                                     ~32, ->53
         51    >   QM_ASSIGN                                        ~33     'yes'
         52      > JMP                                                      ->54
         53    >   QM_ASSIGN                                        ~33     'nope'
         54    >   ECHO                                                     ~33
         55      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.44 ms | 1400 KiB | 25 Q