3v4l.org

run code in 300+ PHP versions simultaneously
<?php function ret_true() { return true; } function ret_false() { return false; } if ($a = ret_true() == true) { var_dump('true:true'); } if ($a = ret_true() == false) { var_dump('true:false'); } if ($a = ret_false() == true) { var_dump('false:true'); } if ($a = ret_false() == false) { var_dump('false:false'); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 8
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 16
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 24
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 32
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
Branch analysis from position: 24
Branch analysis from position: 16
Branch analysis from position: 8
filename:       /in/TeJ0o
function name:  (null)
number of ops:  33
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'ret_true'
          1        DO_FCALL                                      0  $1      
          2        BOOL                                             ~2      $1
          3        ASSIGN                                           ~3      !0, ~2
          4      > JMPZ                                                     ~3, ->8
   11     5    >   INIT_FCALL                                               'var_dump'
          6        SEND_VAL                                                 'true%3Atrue'
          7        DO_ICALL                                                 
   13     8    >   INIT_FCALL                                               'ret_true'
          9        DO_FCALL                                      0  $5      
         10        BOOL_NOT                                         ~6      $5
         11        ASSIGN                                           ~7      !0, ~6
         12      > JMPZ                                                     ~7, ->16
   14    13    >   INIT_FCALL                                               'var_dump'
         14        SEND_VAL                                                 'true%3Afalse'
         15        DO_ICALL                                                 
   17    16    >   INIT_FCALL                                               'ret_false'
         17        DO_FCALL                                      0  $9      
         18        BOOL                                             ~10     $9
         19        ASSIGN                                           ~11     !0, ~10
         20      > JMPZ                                                     ~11, ->24
   18    21    >   INIT_FCALL                                               'var_dump'
         22        SEND_VAL                                                 'false%3Atrue'
         23        DO_ICALL                                                 
   20    24    >   INIT_FCALL                                               'ret_false'
         25        DO_FCALL                                      0  $13     
         26        BOOL_NOT                                         ~14     $13
         27        ASSIGN                                           ~15     !0, ~14
         28      > JMPZ                                                     ~15, ->32
   21    29    >   INIT_FCALL                                               'var_dump'
         30        SEND_VAL                                                 'false%3Afalse'
         31        DO_ICALL                                                 
   22    32    > > RETURN                                                   1

Function ret_true:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TeJ0o
function name:  ret_true
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 ret_true

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

End of function ret_false

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.27 ms | 1403 KiB | 19 Q