3v4l.org

run code in 500+ PHP versions simultaneously
<?php //declare(strict_types=1); function foobar()/*: bool*/ { return flase; } $data = foobar(); var_dump($data); var_dump(true == $data); var_dump(true === $data);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8WRhf
function name:  (null)
number of ops:  15
compiled vars:  !0 = $data
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                                   'foobar'
          1        DO_FCALL                                          0  $1      
          2        ASSIGN                                                       !0, $1
   12     3        INIT_FCALL                                                   'var_dump'
          4        SEND_VAR                                                     !0
          5        DO_ICALL                                                     
   13     6        INIT_FCALL                                                   'var_dump'
          7        IS_EQUAL                                             ~4      !0, <true>
          8        SEND_VAL                                                     ~4
          9        DO_ICALL                                                     
   14    10        INIT_FCALL                                                   'var_dump'
         11        TYPE_CHECK                                        8  ~6      !0
         12        SEND_VAL                                                     ~6
         13        DO_ICALL                                                     
         14      > RETURN                                                       1

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

End of function foobar

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
170.86 ms | 3241 KiB | 15 Q