3v4l.org

run code in 300+ PHP versions simultaneously
<?php class WP_Term { public $term_id = 826; public $name = 'Patient education'; public $slug = 'patient-education'; public $term_group = 0; public $term_taxonomy_id = 826; public $taxonomy = 'product_category'; public $description = ''; public $parent = 0; public $count = 3; public $filter = 'raw'; } $array = array(); $array[] = new Wp_Term(); var_dump(array_search('Patient education', array_column(json_decode(json_encode($array), true), 'name')) === false);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6CMYN
function name:  (null)
number of ops:  25
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   ASSIGN                                                   !0, <array>
   16     1        NEW                                              $3      'Wp_Term'
          2        DO_FCALL                                      0          
          3        ASSIGN_DIM                                               !0
          4        OP_DATA                                                  $3
   18     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'array_search'
          7        SEND_VAL                                                 'Patient+education'
          8        INIT_FCALL                                               'array_column'
          9        INIT_FCALL                                               'json_decode'
         10        INIT_FCALL                                               'json_encode'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $5      
         13        SEND_VAR                                                 $5
         14        SEND_VAL                                                 <true>
         15        DO_ICALL                                         $6      
         16        SEND_VAR                                                 $6
         17        SEND_VAL                                                 'name'
         18        DO_ICALL                                         $7      
         19        SEND_VAR                                                 $7
         20        DO_ICALL                                         $8      
         21        TYPE_CHECK                                    4  ~9      $8
         22        SEND_VAL                                                 ~9
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Class WP_Term: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.18 ms | 1395 KiB | 23 Q