3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( (object) array("term_id"=>"","name"=>"Research and Development","slug"=>"Public Relations","term_group"=>5,"term_taxonomy_id"=>9,"taxonomy"=>"Myanmar","description"=>"69509","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Public Relations","slug"=>"Media Relations","term_group"=>5,"term_taxonomy_id"=>7,"taxonomy"=>"Belgium","description"=>"14234","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Advertising","slug"=>"Quality Assurance","term_group"=>5,"term_taxonomy_id"=>1,"taxonomy"=>"Norfolk Island","description"=>"93236","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Finances","slug"=>"Legal Department","term_group"=>5,"term_taxonomy_id"=>5,"taxonomy"=>"Honduras","description"=>"74759","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Legal Department","slug"=>"Media Relations","term_group"=>1,"term_taxonomy_id"=>9,"taxonomy"=>"Namibia","description"=>"69625","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Sales and Marketing","slug"=>"Advertising","term_group"=>2,"term_taxonomy_id"=>4,"taxonomy"=>"Syria","description"=>"56469","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Finances","slug"=>"Media Relations","term_group"=>5,"term_taxonomy_id"=>8,"taxonomy"=>"Ethiopia","description"=>"74909","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Media Relations","slug"=>"Asset Management","term_group"=>5,"term_taxonomy_id"=>9,"taxonomy"=>"Indonesia","description"=>"17623","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Finances","slug"=>"Customer Relations","term_group"=>2,"term_taxonomy_id"=>3,"taxonomy"=>"Zimbabwe","description"=>"83249","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Sales and Marketing","slug"=>"Public Relations","term_group"=>1,"term_taxonomy_id"=>10,"taxonomy"=>"Faroe Islands","description"=>"03778","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Sales and Marketing","slug"=>"Sales and Marketing","term_group"=>7,"term_taxonomy_id"=>3,"taxonomy"=>"Latvia","description"=>"68525","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Accounting","slug"=>"Research and Development","term_group"=>9,"term_taxonomy_id"=>7,"taxonomy"=>"Bouvet Island","description"=>"18959","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Asset Management","slug"=>"Advertising","term_group"=>1,"term_taxonomy_id"=>9,"taxonomy"=>"Tajikistan","description"=>"94796","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Tech Support : arstatf","slug"=>"Accounting","term_group"=>5,"term_taxonomy_id"=>7,"taxonomy"=>"Côte D'Ivoire (Ivory Coast)","description"=>"24209","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Research and Development","slug"=>"Human Resources","term_group"=>9,"term_taxonomy_id"=>3,"taxonomy"=>"Ukraine","description"=>"77647","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Media Relations","slug"=>"Customer Service","term_group"=>6,"term_taxonomy_id"=>7,"taxonomy"=>"Maldives","description"=>"97264","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Sales and Marketing","slug"=>"Public Relations","term_group"=>4,"term_taxonomy_id"=>1,"taxonomy"=>"Burundi","description"=>"15271","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Customer Service","slug"=>"Public Relations","term_group"=>9,"term_taxonomy_id"=>7,"taxonomy"=>"Sierra Leone","description"=>"41278","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Advertising","slug"=>"Advertising","term_group"=>10,"term_taxonomy_id"=>2,"taxonomy"=>"Guatemala","description"=>"65945","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Media Relations","slug"=>"Public Relations","term_group"=>4,"term_taxonomy_id"=>6,"taxonomy"=>"Taiwan","description"=>"06924","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Payroll","slug"=>"Payroll","term_group"=>3,"term_taxonomy_id"=>2,"taxonomy"=>"Niue","description"=>"58151","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Sales and Marketing","slug"=>"Customer Relations","term_group"=>4,"term_taxonomy_id"=>1,"taxonomy"=>"Lebanon","description"=>"07714","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Customer Service","slug"=>"Media Relations","term_group"=>10,"term_taxonomy_id"=>8,"taxonomy"=>"Philippines","description"=>"49467","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Sales and Marketing","slug"=>"Quality Assurance","term_group"=>5,"term_taxonomy_id"=>4,"taxonomy"=>"Samoa","description"=>"43176","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Media Relations","slug"=>"Legal Department","term_group"=>7,"term_taxonomy_id"=>1,"taxonomy"=>"Samoa","description"=>"71923","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Customer Relations","slug"=>"Customer Relations","term_group"=>9,"term_taxonomy_id"=>4,"taxonomy"=>"Libya","description"=>"28065","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Accounting","slug"=>"Customer Service","term_group"=>1,"term_taxonomy_id"=>3,"taxonomy"=>"Kazakhstan","description"=>"34833","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Asset Management","slug"=>"Finances","term_group"=>4,"term_taxonomy_id"=>7,"taxonomy"=>"Gibraltar","description"=>"89643","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Advertising","slug"=>"Payroll","term_group"=>8,"term_taxonomy_id"=>2,"taxonomy"=>"Togo","description"=>"89307","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Customer Relations","slug"=>"Quality Assurance","term_group"=>2,"term_taxonomy_id"=>6,"taxonomy"=>"Ukraine","description"=>"18751","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Research and Development","slug"=>"Asset Management","term_group"=>4,"term_taxonomy_id"=>9,"taxonomy"=>"El Salvador","description"=>"22852","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Tech Support : arstatf","slug"=>"Accounting","term_group"=>8,"term_taxonomy_id"=>1,"taxonomy"=>"Guatemala","description"=>"74218","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Asset Management","slug"=>"Research and Development","term_group"=>7,"term_taxonomy_id"=>5,"taxonomy"=>"Taiwan","description"=>"21287","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Finances","slug"=>"Tech Support-rstartawt","term_group"=>10,"term_taxonomy_id"=>8,"taxonomy"=>"Fiji","description"=>"90444","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Payroll","slug"=>"Customer Relations","term_group"=>4,"term_taxonomy_id"=>3,"taxonomy"=>"Barbados","description"=>"33922","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Quality Assurance","slug"=>"Tech Support-rstartawt","term_group"=>3,"term_taxonomy_id"=>5,"taxonomy"=>"Aruba","description"=>"25744","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Quality Assurance","slug"=>"Finances","term_group"=>5,"term_taxonomy_id"=>2,"taxonomy"=>"Haiti","description"=>"46402","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Research and Development","slug"=>"Customer Relations","term_group"=>5,"term_taxonomy_id"=>3,"taxonomy"=>"Zambia","description"=>"34822","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Research and Development","slug"=>"Customer Relations","term_group"=>10,"term_taxonomy_id"=>10,"taxonomy"=>"Myanmar","description"=>"86888","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Customer Service","slug"=>"Finances","term_group"=>1,"term_taxonomy_id"=>7,"taxonomy"=>"Palau","description"=>"07942","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Asset Management","slug"=>"Research and Development","term_group"=>1,"term_taxonomy_id"=>7,"taxonomy"=>"Palestine, State of","description"=>"03933","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Tech Support : arstatf","slug"=>"Accounting","term_group"=>9,"term_taxonomy_id"=>4,"taxonomy"=>"Saudi Arabia","description"=>"91924","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Media Relations","slug"=>"Finances","term_group"=>5,"term_taxonomy_id"=>3,"taxonomy"=>"Serbia","description"=>"29202","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Accounting","slug"=>"Media Relations","term_group"=>4,"term_taxonomy_id"=>1,"taxonomy"=>"Iran","description"=>"89739","parent"=>"","count"=>"1") ); // organize each category name by type of category eg section, country foreach ($cats as $data) { if ( stripos($cat->name, 'section') !== false ) { $cat->description = str_ireplace("section: ", '', $cat->name); $sections[] = $cat ; } elseif ( stripos($cat->name, 'country') !== false ) { $countries[] = $cat ; $cat->description = str_ireplace("country: ", '', $cat->name); } //etc // put them all in that big array defind earlier $filtered_categories = array('sections' =>$sections, 'countries' => $countries, 'date' => $date, /* 'type' =>$type, */ /*'venues' => $venues,*/ 'alphabetical' => $alphabetical); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 90, Position 2 = 132
Branch analysis from position: 90
2 jumps found. (Code = 78) Position 1 = 91, Position 2 = 132
Branch analysis from position: 91
2 jumps found. (Code = 43) Position 1 = 98, Position 2 = 109
Branch analysis from position: 98
1 jumps found. (Code = 42) Position 1 = 126
Branch analysis from position: 126
1 jumps found. (Code = 42) Position 1 = 90
Branch analysis from position: 90
Branch analysis from position: 109
2 jumps found. (Code = 43) Position 1 = 116, Position 2 = 126
Branch analysis from position: 116
1 jumps found. (Code = 42) Position 1 = 90
Branch analysis from position: 90
Branch analysis from position: 126
Branch analysis from position: 132
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 132
filename:       /in/gnvhX
function name:  (null)
number of ops:  134
compiled vars:  !0 = $data, !1 = $cats, !2 = $cat, !3 = $sections, !4 = $countries, !5 = $filtered_categories, !6 = $date, !7 = $alphabetical
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   CAST                                          8  ~8      <array>
          1        INIT_ARRAY                                       ~9      ~8
    5     2        CAST                                          8  ~10     <array>
          3        ADD_ARRAY_ELEMENT                                ~9      ~10
    6     4        CAST                                          8  ~11     <array>
          5        ADD_ARRAY_ELEMENT                                ~9      ~11
    7     6        CAST                                          8  ~12     <array>
          7        ADD_ARRAY_ELEMENT                                ~9      ~12
    8     8        CAST                                          8  ~13     <array>
          9        ADD_ARRAY_ELEMENT                                ~9      ~13
    9    10        CAST                                          8  ~14     <array>
         11        ADD_ARRAY_ELEMENT                                ~9      ~14
   10    12        CAST                                          8  ~15     <array>
         13        ADD_ARRAY_ELEMENT                                ~9      ~15
   11    14        CAST                                          8  ~16     <array>
         15        ADD_ARRAY_ELEMENT                                ~9      ~16
   12    16        CAST                                          8  ~17     <array>
         17        ADD_ARRAY_ELEMENT                                ~9      ~17
   13    18        CAST                                          8  ~18     <array>
         19        ADD_ARRAY_ELEMENT                                ~9      ~18
   14    20        CAST                                          8  ~19     <array>
         21        ADD_ARRAY_ELEMENT                                ~9      ~19
   15    22        CAST                                          8  ~20     <array>
         23        ADD_ARRAY_ELEMENT                                ~9      ~20
   16    24        CAST                                          8  ~21     <array>
         25        ADD_ARRAY_ELEMENT                                ~9      ~21
   17    26        CAST                                          8  ~22     <array>
         27        ADD_ARRAY_ELEMENT                                ~9      ~22
   18    28        CAST                                          8  ~23     <array>
         29        ADD_ARRAY_ELEMENT                                ~9      ~23
   19    30        CAST                                          8  ~24     <array>
         31        ADD_ARRAY_ELEMENT                                ~9      ~24
   20    32        CAST                                          8  ~25     <array>
         33        ADD_ARRAY_ELEMENT                                ~9      ~25
   21    34        CAST                                          8  ~26     <array>
         35        ADD_ARRAY_ELEMENT                                ~9      ~26
   22    36        CAST                                          8  ~27     <array>
         37        ADD_ARRAY_ELEMENT                                ~9      ~27
   23    38        CAST                                          8  ~28     <array>
         39        ADD_ARRAY_ELEMENT                                ~9      ~28
   24    40        CAST                                          8  ~29     <array>
         41        ADD_ARRAY_ELEMENT                                ~9      ~29
   25    42        CAST                                          8  ~30     <array>
         43        ADD_ARRAY_ELEMENT                                ~9      ~30
   26    44        CAST                                          8  ~31     <array>
         45        ADD_ARRAY_ELEMENT                                ~9      ~31
   27    46        CAST                                          8  ~32     <array>
         47        ADD_ARRAY_ELEMENT                                ~9      ~32
   28    48        CAST                                          8  ~33     <array>
         49        ADD_ARRAY_ELEMENT                                ~9      ~33
   29    50        CAST                                          8  ~34     <array>
         51        ADD_ARRAY_ELEMENT                                ~9      ~34
   30    52        CAST                                          8  ~35     <array>
         53        ADD_ARRAY_ELEMENT                                ~9      ~35
   31    54        CAST                                          8  ~36     <array>
         55        ADD_ARRAY_ELEMENT                                ~9      ~36
   32    56        CAST                                          8  ~37     <array>
         57        ADD_ARRAY_ELEMENT                                ~9      ~37
   33    58        CAST                                          8  ~38     <array>
         59        ADD_ARRAY_ELEMENT                                ~9      ~38
   34    60        CAST                                          8  ~39     <array>
         61        ADD_ARRAY_ELEMENT                                ~9      ~39
   35    62        CAST                                          8  ~40     <array>
         63        ADD_ARRAY_ELEMENT                                ~9      ~40
   36    64        CAST                                          8  ~41     <array>
         65        ADD_ARRAY_ELEMENT                                ~9      ~41
   37    66        CAST                                          8  ~42     <array>
         67        ADD_ARRAY_ELEMENT                                ~9      ~42
   38    68        CAST                                          8  ~43     <array>
         69        ADD_ARRAY_ELEMENT                                ~9      ~43
   39    70        CAST                                          8  ~44     <array>
         71        ADD_ARRAY_ELEMENT                                ~9      ~44
   40    72        CAST                                          8  ~45     <array>
         73        ADD_ARRAY_ELEMENT                                ~9      ~45
   41    74        CAST                                          8  ~46     <array>
         75        ADD_ARRAY_ELEMENT                                ~9      ~46
   42    76        CAST                                          8  ~47     <array>
         77        ADD_ARRAY_ELEMENT                                ~9      ~47
   43    78        CAST                                          8  ~48     <array>
         79        ADD_ARRAY_ELEMENT                                ~9      ~48
   44    80        CAST                                          8  ~49     <array>
         81        ADD_ARRAY_ELEMENT                                ~9      ~49
   45    82        CAST                                          8  ~50     <array>
         83        ADD_ARRAY_ELEMENT                                ~9      ~50
   46    84        CAST                                          8  ~51     <array>
         85        ADD_ARRAY_ELEMENT                                ~9      ~51
   47    86        CAST                                          8  ~52     <array>
         87        ADD_ARRAY_ELEMENT                                ~9      ~52
    2    88        ASSIGN                                                   !0, ~9
   53    89      > FE_RESET_R                                       $54     !1, ->132
         90    > > FE_FETCH_R                                               $54, !0, ->132
   54    91    >   INIT_FCALL                                               'stripos'
         92        FETCH_OBJ_R                                      ~55     !2, 'name'
         93        SEND_VAL                                                 ~55
         94        SEND_VAL                                                 'section'
         95        DO_ICALL                                         $56     
         96        TYPE_CHECK                                  1018          $56
         97      > JMPZ                                                     ~57, ->109
   55    98    >   INIT_FCALL                                               'str_ireplace'
         99        SEND_VAL                                                 'section%3A+'
        100        SEND_VAL                                                 ''
        101        FETCH_OBJ_R                                      ~59     !2, 'name'
        102        SEND_VAL                                                 ~59
        103        DO_ICALL                                         $60     
        104        ASSIGN_OBJ                                               !2, 'description'
        105        OP_DATA                                                  $60
   56   106        ASSIGN_DIM                                               !3
        107        OP_DATA                                                  !2
        108      > JMP                                                      ->126
   58   109    >   INIT_FCALL                                               'stripos'
        110        FETCH_OBJ_R                                      ~62     !2, 'name'
        111        SEND_VAL                                                 ~62
        112        SEND_VAL                                                 'country'
        113        DO_ICALL                                         $63     
        114        TYPE_CHECK                                  1018          $63
        115      > JMPZ                                                     ~64, ->126
   59   116    >   ASSIGN_DIM                                               !4
        117        OP_DATA                                                  !2
   60   118        INIT_FCALL                                               'str_ireplace'
        119        SEND_VAL                                                 'country%3A+'
        120        SEND_VAL                                                 ''
        121        FETCH_OBJ_R                                      ~67     !2, 'name'
        122        SEND_VAL                                                 ~67
        123        DO_ICALL                                         $68     
        124        ASSIGN_OBJ                                               !2, 'description'
        125        OP_DATA                                                  $68
   64   126    >   INIT_ARRAY                                       ~69     !3, 'sections'
        127        ADD_ARRAY_ELEMENT                                ~69     !4, 'countries'
        128        ADD_ARRAY_ELEMENT                                ~69     !6, 'date'
        129        ADD_ARRAY_ELEMENT                                ~69     !7, 'alphabetical'
        130        ASSIGN                                                   !5, ~69
   53   131      > JMP                                                      ->90
        132    >   FE_FREE                                                  $54
   66   133      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.57 ms | 1408 KiB | 17 Q