3v4l.org

run code in 300+ PHP versions simultaneously
<?php $age=array("Sophia"=>"31","Jacob"=>"41","William"=>"39","Ramesh"=>"40"); asort($age); ksort($age); arsort($age); krsort($age); foreach($age as $key=>$value) { echo "key is : ".$key." , value is : ".$value; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 21
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 21
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/hVFK7
function name:  (null)
number of ops:  23
compiled vars:  !0 = $age, !1 = $value, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'asort'
          2        SEND_REF                                                 !0
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'ksort'
          5        SEND_REF                                                 !0
          6        DO_ICALL                                                 
    5     7        INIT_FCALL                                               'arsort'
          8        SEND_REF                                                 !0
          9        DO_ICALL                                                 
    6    10        INIT_FCALL                                               'krsort'
         11        SEND_REF                                                 !0
         12        DO_ICALL                                                 
    8    13      > FE_RESET_R                                       $8      !0, ->21
         14    > > FE_FETCH_R                                       ~9      $8, !1, ->21
         15    >   ASSIGN                                                   !2, ~9
   10    16        CONCAT                                           ~11     'key+is+%3A+', !2
         17        CONCAT                                           ~12     ~11, '+%2C+value+is+%3A+'
         18        CONCAT                                           ~13     ~12, !1
         19        ECHO                                                     ~13
    8    20      > JMP                                                      ->14
         21    >   FE_FREE                                                  $8
   12    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
189.93 ms | 1395 KiB | 21 Q