3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [1,2,3]; $b = [a,b,c,d,]; if ( sizeof($a) && sizeof($b) ) { echo 'unbelievable'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 16
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
Branch analysis from position: 14
filename:       /in/7ChGW
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        FETCH_CONSTANT                                   ~3      'a'
          2        INIT_ARRAY                                       ~4      ~3
          3        FETCH_CONSTANT                                   ~5      'b'
          4        ADD_ARRAY_ELEMENT                                ~4      ~5
          5        FETCH_CONSTANT                                   ~6      'c'
          6        ADD_ARRAY_ELEMENT                                ~4      ~6
          7        FETCH_CONSTANT                                   ~7      'd'
          8        ADD_ARRAY_ELEMENT                                ~4      ~7
          9        ASSIGN                                                   !1, ~4
    6    10        COUNT                                            ~9      !0
         11      > JMPZ_EX                                          ~9      ~9, ->14
         12    >   COUNT                                            ~10     !1
         13        BOOL                                             ~9      ~10
         14    > > JMPZ                                                     ~9, ->16
    7    15    >   ECHO                                                     'unbelievable'
    9    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.51 ms | 1393 KiB | 13 Q