3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.9 ms | 1395 KiB | 17 Q