3v4l.org

run code in 300+ PHP versions simultaneously
<?php function returnFalse() { return false; } $f = true; if ($f = returnFalse()) { echo 'true'; } else { echo 'false'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EsJTm
function name:  (null)
number of ops:  9
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, <true>
   10     1        INIT_FCALL                                               'returnfalse'
          2        DO_FCALL                                      0  $2      
          3        ASSIGN                                           ~3      !0, $2
          4      > JMPZ                                                     ~3, ->7
   11     5    >   ECHO                                                     'true'
          6      > JMP                                                      ->8
   13     7    >   ECHO                                                     'false'
   14     8    > > RETURN                                                   1

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

End of function returnfalse

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
199.46 ms | 1388 KiB | 14 Q