3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fruits = array("d" => "a lemon", "a" => "a orange", "b" => "A banana", "c" => "B apple"); asort($fruits, SORT_STRING | SORT_FLAG_CASE); foreach ($fruits as $key => $val) { echo "1: $key = $val\n"; } echo "==="; $fruits2 = array("d" => "a lemon", "a" => "a orange", "b" => "A banana", "c" => "B apple"); natcasesort($fruits2); foreach ($fruits2 as $key => $val) { echo "2: $key = $val\n"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 15
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 15
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 15
2 jumps found. (Code = 77) Position 1 = 22, Position 2 = 31
Branch analysis from position: 22
2 jumps found. (Code = 78) Position 1 = 23, Position 2 = 31
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
Branch analysis from position: 15
filename:       /in/bT53h
function name:  (null)
number of ops:  33
compiled vars:  !0 = $fruits, !1 = $val, !2 = $key, !3 = $fruits2
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        SEND_VAL                                                 10
          4        DO_ICALL                                                 
    4     5      > FE_RESET_R                                       $6      !0, ->15
          6    > > FE_FETCH_R                                       ~7      $6, !1, ->15
          7    >   ASSIGN                                                   !2, ~7
    5     8        ROPE_INIT                                     5  ~10     '1%3A+'
          9        ROPE_ADD                                      1  ~10     ~10, !2
         10        ROPE_ADD                                      2  ~10     ~10, '+%3D+'
         11        ROPE_ADD                                      3  ~10     ~10, !1
         12        ROPE_END                                      4  ~9      ~10, '%0A'
         13        ECHO                                                     ~9
    4    14      > JMP                                                      ->6
         15    >   FE_FREE                                                  $6
    7    16        ECHO                                                     '%3D%3D%3D'
    8    17        ASSIGN                                                   !3, <array>
    9    18        INIT_FCALL                                               'natcasesort'
         19        SEND_REF                                                 !3
         20        DO_ICALL                                                 
   10    21      > FE_RESET_R                                       $15     !3, ->31
         22    > > FE_FETCH_R                                       ~16     $15, !1, ->31
         23    >   ASSIGN                                                   !2, ~16
   11    24        ROPE_INIT                                     5  ~19     '2%3A+'
         25        ROPE_ADD                                      1  ~19     ~19, !2
         26        ROPE_ADD                                      2  ~19     ~19, '+%3D+'
         27        ROPE_ADD                                      3  ~19     ~19, !1
         28        ROPE_END                                      4  ~18     ~19, '%0A'
         29        ECHO                                                     ~18
   10    30      > JMP                                                      ->22
         31    >   FE_FREE                                                  $15
   13    32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.67 ms | 1396 KiB | 17 Q