3v4l.org

run code in 500+ PHP versions simultaneously
<?php function foo() { return TRUE; } if ($foo = foo() && $foo === TRUE) { print $foo; } if (($foo = foo()) && $foo === TRUE) { print $foo; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
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
Branch analysis from position: 8
Branch analysis from position: 5
filename:       /in/OdUV8
function name:  (null)
number of ops:  17
compiled vars:  !0 = $foo
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                                   'foo'
          1        DO_FCALL                                          0  $1      
          2      > JMPZ_EX                                              ~2      $1, ->5
          3    >   TYPE_CHECK                                        8  ~3      !0
          4        BOOL                                                 ~2      ~3
          5    >   ASSIGN                                               ~4      !0, ~2
          6      > JMPZ                                                         ~4, ->8
    8     7    >   ECHO                                                         !0
   11     8    >   INIT_FCALL                                                   'foo'
          9        DO_FCALL                                          0  $5      
         10        ASSIGN                                               ~6      !0, $5
         11      > JMPZ_EX                                              ~6      ~6, ->14
         12    >   TYPE_CHECK                                        8  ~7      !0
         13        BOOL                                                 ~6      ~7
         14    > > JMPZ                                                         ~6, ->16
   12    15    >   ECHO                                                         !0
   13    16    > > RETURN                                                       1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OdUV8
function name:  foo
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                       <true>
    5     1*     > RETURN                                                       null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
229.45 ms | 3342 KiB | 15 Q