3v4l.org

run code in 300+ PHP versions simultaneously
<?php $one = ['foo']; $two = ['bar']; if($foo=array_pop($one) | $bar=array_pop($two)) { var_dump($foo, $bar);//"foo" & null }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 16
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/n09An
function name:  (null)
number of ops:  17
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        INIT_FCALL                                               'array_pop'
          6        SEND_REF                                                 !1
          7        DO_ICALL                                         $7      
          8        ASSIGN                                           ~8      !3, $7
          9        BW_OR                                            ~9      $6, ~8
         10        ASSIGN                                           ~10     !2, ~9
         11      > JMPZ                                                     ~10, ->16
    7    12    >   INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !2
         14        SEND_VAR                                                 !3
         15        DO_ICALL                                                 
    8    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.5 ms | 1394 KiB | 17 Q