3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array('a' => 2, 'b' => 1, 'c' => 4); krsort($array); print_r($array); $array = array('q' => 2, 'b' => 1, 'z' => 4); $array = array_reverse($array); print_r($array); $array = array('a' => 2, 'b' => 1, 'c' => 4); end($array); $array = array_merge(each($array),$array); print_r($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AcuUi
function name:  (null)
number of ops:  31
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'krsort'
          2        SEND_REF                                                 !0
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'print_r'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
    6     7        ASSIGN                                                   !0, <array>
    7     8        INIT_FCALL                                               'array_reverse'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $5      
         11        ASSIGN                                                   !0, $5
    8    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
   10    15        ASSIGN                                                   !0, <array>
   11    16        INIT_FCALL                                               'end'
         17        SEND_REF                                                 !0
         18        DO_ICALL                                                 
   12    19        INIT_FCALL                                               'array_merge'
         20        INIT_FCALL_BY_NAME                                       'each'
         21        SEND_VAR_EX                                              !0
         22        DO_FCALL                                      0  $10     
         23        SEND_VAR                                                 $10
         24        SEND_VAR                                                 !0
         25        DO_ICALL                                         $11     
         26        ASSIGN                                                   !0, $11
   14    27        INIT_FCALL                                               'print_r'
         28        SEND_VAR                                                 !0
         29        DO_ICALL                                                 
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.84 ms | 1395 KiB | 26 Q