3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array("Sophia"=>"31","Jacob"=>"41","William"=>"39","Ramesh"=>"40"); sort($a); echo $a . "\n\n"; asort($a); echo $a . "\n\n"; rsort($a); echo $a . "\n\n"; arsort($a); echo $a . "\n\n"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2hjsN
function name:  (null)
number of ops:  22
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        CONCAT                                           ~3      !0, '%0A%0A'
          5        ECHO                                                     ~3
    6     6        INIT_FCALL                                               'asort'
          7        SEND_REF                                                 !0
          8        DO_ICALL                                                 
    7     9        CONCAT                                           ~5      !0, '%0A%0A'
         10        ECHO                                                     ~5
    8    11        INIT_FCALL                                               'rsort'
         12        SEND_REF                                                 !0
         13        DO_ICALL                                                 
    9    14        CONCAT                                           ~7      !0, '%0A%0A'
         15        ECHO                                                     ~7
   10    16        INIT_FCALL                                               'arsort'
         17        SEND_REF                                                 !0
         18        DO_ICALL                                                 
   11    19        CONCAT                                           ~9      !0, '%0A%0A'
         20        ECHO                                                     ~9
   13    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.3 ms | 1395 KiB | 21 Q