3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array("a1"=>x,"a2"=>e,"a3"=>z); ksort( $array ); foreach ( $array as $keys => $values ) { print "$keys = $values "; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 19
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 19
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/kqgll
function name:  (null)
number of ops:  21
compiled vars:  !0 = $array, !1 = $values, !2 = $keys
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_CONSTANT                                   ~3      'x'
          1        INIT_ARRAY                                       ~4      ~3, 'a1'
          2        FETCH_CONSTANT                                   ~5      'e'
          3        ADD_ARRAY_ELEMENT                                ~4      ~5, 'a2'
          4        FETCH_CONSTANT                                   ~6      'z'
          5        ADD_ARRAY_ELEMENT                                ~4      ~6, 'a3'
          6        ASSIGN                                                   !0, ~4
    3     7        INIT_FCALL                                               'ksort'
          8        SEND_REF                                                 !0
          9        DO_ICALL                                                 
    5    10      > FE_RESET_R                                       $9      !0, ->19
         11    > > FE_FETCH_R                                       ~10     $9, !1, ->19
         12    >   ASSIGN                                                   !2, ~10
    6    13        ROPE_INIT                                     4  ~13     !2
         14        ROPE_ADD                                      1  ~13     ~13, '+%3D+'
         15        ROPE_ADD                                      2  ~13     ~13, !1
         16        ROPE_END                                      3  ~12     ~13, '+'
         17        ECHO                                                     ~12
    5    18      > JMP                                                      ->11
         19    >   FE_FREE                                                  $9
    7    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.13 ms | 1395 KiB | 15 Q