3v4l.org

run code in 500+ PHP versions simultaneously
<?php $users = json_decode('[{"first_name":"Rebecca"},{"first_name":"amy"},{"first_name":"Amy"},{"first_name":"stacy"}]', true); $firstNames = array_column($users, 'first_name'); array_multisort(array_map('strtolower', $firstNames), $firstNames, $users); var_export($users);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/t3p6k
function name:  (null)
number of ops:  23
compiled vars:  !0 = $users, !1 = $firstNames
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'json_decode'
          1        SEND_VAL                                                     '%5B%7B%22first_name%22%3A%22Rebecca%22%7D%2C%7B%22first_name%22%3A%22amy%22%7D%2C%7B%22first_name%22%3A%22Amy%22%7D%2C%7B%22first_name%22%3A%22stacy%22%7D%5D'
          2        SEND_VAL                                                     <true>
          3        DO_ICALL                                             $2      
          4        ASSIGN                                                       !0, $2
    5     5        INIT_FCALL                                                   'array_column'
          6        SEND_VAR                                                     !0
          7        SEND_VAL                                                     'first_name'
          8        DO_ICALL                                             $4      
          9        ASSIGN                                                       !1, $4
    6    10        INIT_FCALL                                                   'array_multisort'
         11        INIT_FCALL                                                   'array_map'
         12        SEND_VAL                                                     'strtolower'
         13        SEND_VAR                                                     !1
         14        DO_ICALL                                             $6      
         15        SEND_VAL                                                     $6
         16        SEND_REF                                                     !1
         17        SEND_REF                                                     !0
         18        DO_ICALL                                                     
    7    19        INIT_FCALL                                                   'var_export'
         20        SEND_VAR                                                     !0
         21        DO_ICALL                                                     
         22      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.46 ms | 1627 KiB | 18 Q