3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr = [ [ 'slug' => 'products-services-pricing', 'text' => 'Products/Services and Pricing', ], [ 'slug' => 'promotions-plan', 'text' => 'Promotions Plan', ], ...(1 == 1) ? [ ['slug' => 'distribution-plan', 'text' => 'Distribution Plan'] ] : [], ]; var_export($arr); echo "\n---\n"; $arr = [ [ 'slug' => 'products-services-pricing', 'text' => 'Products/Services and Pricing', ], [ 'slug' => 'promotions-plan', 'text' => 'Promotions Plan', ], ...(1 == 2) ? [ ['slug' => 'distribution-plan', 'text' => 'Distribution Plan'] ] : [], ]; var_export($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/295lV
function name:  (null)
number of ops:  10
compiled vars:  !0 = $arr
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   20     1        INIT_FCALL                                                   'var_export'
          2        SEND_VAR                                                     !0
          3        DO_ICALL                                                     
   22     4        ECHO                                                         '%0A---%0A'
   24     5        ASSIGN                                                       !0, <array>
   41     6        INIT_FCALL                                                   'var_export'
          7        SEND_VAR                                                     !0
          8        DO_ICALL                                                     
          9      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.86 ms | 1987 KiB | 14 Q