3v4l.org

run code in 300+ 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        BOOL                                             ~4      !0
          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.0.0


preferences:
151.6 ms | 1012 KiB | 15 Q