3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array("Sophia"=>"31","Jacob"=>"41","William"=>"39","Ramesh"=>"40"); sort($a); print_r($a); echo "\n\n"; asort($a); print_r($a); echo "\n\n"; rsort($a); print_r($a); echo "\n\n"; arsort($a); print_r($a); echo "\n\n"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GQbrj
function name:  (null)
number of ops:  30
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'sort'
          2        SEND_REF                                                 !0
          3        DO_ICALL                                                 
    5     4        INIT_FCALL                                               'print_r'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
    6     7        ECHO                                                     '%0A%0A'
    7     8        INIT_FCALL                                               'asort'
          9        SEND_REF                                                 !0
         10        DO_ICALL                                                 
    8    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
    9    14        ECHO                                                     '%0A%0A'
   10    15        INIT_FCALL                                               'rsort'
         16        SEND_REF                                                 !0
         17        DO_ICALL                                                 
   11    18        INIT_FCALL                                               'print_r'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                                 
   12    21        ECHO                                                     '%0A%0A'
   13    22        INIT_FCALL                                               'arsort'
         23        SEND_REF                                                 !0
         24        DO_ICALL                                                 
   14    25        INIT_FCALL                                               'print_r'
         26        SEND_VAR                                                 !0
         27        DO_ICALL                                                 
   15    28        ECHO                                                     '%0A%0A'
   17    29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.31 ms | 1395 KiB | 23 Q