3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
188.7 ms | 1400 KiB | 25 Q