3v4l.org

run code in 300+ PHP versions simultaneously
<?php $one = ['foo']; $two = ['bar']; if($foo=array_pop($one) or $bar=array_pop($two)) { var_dump($foo, $bar);//"foo" & null }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 17
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
Branch analysis from position: 12
filename:       /in/fDPbt
function name:  (null)
number of ops:  18
compiled vars:  !0 = $one, !1 = $two, !2 = $foo, !3 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        INIT_FCALL                                               'array_pop'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                         $6      
          5        ASSIGN                                           ~7      !2, $6
          6      > JMPNZ_EX                                         ~7      ~7, ->12
          7    >   INIT_FCALL                                               'array_pop'
          8        SEND_REF                                                 !1
          9        DO_ICALL                                         $8      
         10        ASSIGN                                           ~9      !3, $8
         11        BOOL                                             ~7      ~9
         12    > > JMPZ                                                     ~7, ->17
    7    13    >   INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !2
         15        SEND_VAR                                                 !3
         16        DO_ICALL                                                 
    8    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.28 ms | 1395 KiB | 17 Q