3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * Created by PhpStorm. * User: efik * Date: 21.09.15 * Time: 13:28 */ $podcasts = []; foreach (range(1, 150) as $index) { $podcasts[] = [ "id" => $index * mt_rand(1, 4), "title" => "Song - " . $index, "time" => $index, "License" => "MIT", ]; } arsort($podcasts); print_r( $podcasts);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 20
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 20
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/Qb45a
function name:  (null)
number of ops:  28
compiled vars:  !0 = $podcasts, !1 = $index
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, <array>
    9     1        INIT_FCALL                                               'range'
          2        SEND_VAL                                                 1
          3        SEND_VAL                                                 150
          4        DO_ICALL                                         $3      
          5      > FE_RESET_R                                       $4      $3, ->20
          6    > > FE_FETCH_R                                               $4, !1, ->20
   12     7    >   INIT_FCALL                                               'mt_rand'
          8        SEND_VAL                                                 1
          9        SEND_VAL                                                 4
         10        DO_ICALL                                         $6      
         11        MUL                                              ~7      !1, $6
         12        INIT_ARRAY                                       ~8      ~7, 'id'
   13    13        CONCAT                                           ~9      'Song+-+', !1
         14        ADD_ARRAY_ELEMENT                                ~8      ~9, 'title'
   14    15        ADD_ARRAY_ELEMENT                                ~8      !1, 'time'
   15    16        ADD_ARRAY_ELEMENT                                ~8      'MIT', 'License'
   10    17        ASSIGN_DIM                                               !0
   15    18        OP_DATA                                                  ~8
    9    19      > JMP                                                      ->6
         20    >   FE_FREE                                                  $4
   18    21        INIT_FCALL                                               'arsort'
         22        SEND_REF                                                 !0
         23        DO_ICALL                                                 
   21    24        INIT_FCALL                                               'print_r'
         25        SEND_VAR                                                 !0
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.04 ms | 1400 KiB | 21 Q