3v4l.org

run code in 500+ PHP versions simultaneously
<?php $messages = [ "a" => "use this ", "b" => "@ - ", "c" => "Don't" ]; sort ($messages); foreach( $messages as $key => $message){ echo " {$key} - {$message} \n"; } echo PHP_EOL;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 14
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 14
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/sODK2
function name:  (null)
number of ops:  17
compiled vars:  !0 = $messages, !1 = $message, !2 = $key
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    8     1        INIT_FCALL                                                   'sort'
          2        SEND_REF                                                     !0
          3        DO_ICALL                                                     
   10     4      > FE_RESET_R                                           $5      !0, ->14
          5    > > FE_FETCH_R                                           ~6      $5, !1, ->14
          6    >   ASSIGN                                                       !2, ~6
   11     7        ROPE_INIT                                         5  ~9      '+'
          8        ROPE_ADD                                          1  ~9      ~9, !2
          9        ROPE_ADD                                          2  ~9      ~9, '+-+'
         10        ROPE_ADD                                          3  ~9      ~9, !1
         11        ROPE_END                                          4  ~8      ~9, '+%0A'
         12        ECHO                                                         ~8
   10    13      > JMP                                                          ->5
         14    >   FE_FREE                                                      $5
   14    15        ECHO                                                         '%0A'
         16      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
173.64 ms | 2658 KiB | 14 Q