3v4l.org

run code in 300+ PHP versions simultaneously
<?php // No properties key. $schema = ['foo' => 'bar']; if (($schema['properties'] ?? NULL) === []) { $schema['properties'] = 'created'; } print_r($schema); if (($schema['properties'] ?? []) === []) { $schema['properties'] = 'created'; } print_r($schema); // Empty properties key. $schema = ['properties' => []]; if (($schema['properties'] ?? []) === []) { $schema['properties'] = 'created'; } print_r($schema);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 29
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
Branch analysis from position: 18
Branch analysis from position: 8
filename:       /in/u5CM5
function name:  (null)
number of ops:  33
compiled vars:  !0 = $schema
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    6     1        FETCH_DIM_IS                                     ~2      !0, 'properties'
          2        COALESCE                                         ~3      ~2
          3        QM_ASSIGN                                        ~3      null
          4        IS_IDENTICAL                                             ~3, <array>
          5      > JMPZ                                                     ~4, ->8
    7     6    >   ASSIGN_DIM                                               !0, 'properties'
          7        OP_DATA                                                  'created'
   10     8    >   INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
   12    11        FETCH_DIM_IS                                     ~7      !0, 'properties'
         12        COALESCE                                         ~8      ~7
         13        QM_ASSIGN                                        ~8      <array>
         14        IS_IDENTICAL                                             ~8, <array>
         15      > JMPZ                                                     ~9, ->18
   13    16    >   ASSIGN_DIM                                               !0, 'properties'
         17        OP_DATA                                                  'created'
   16    18    >   INIT_FCALL                                               'print_r'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                                 
   19    21        ASSIGN                                                   !0, <array>
   21    22        FETCH_DIM_IS                                     ~13     !0, 'properties'
         23        COALESCE                                         ~14     ~13
         24        QM_ASSIGN                                        ~14     <array>
         25        IS_IDENTICAL                                             ~14, <array>
         26      > JMPZ                                                     ~15, ->29
   22    27    >   ASSIGN_DIM                                               !0, 'properties'
         28        OP_DATA                                                  'created'
   25    29    >   INIT_FCALL                                               'print_r'
         30        SEND_VAR                                                 !0
         31        DO_ICALL                                                 
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
131.58 ms | 1433 KiB | 14 Q