3v4l.org

run code in 300+ PHP versions simultaneously
<?php function assertFalse( $expected, $message ) { if ( false !== $value ) { echo $message; return false; } else { return true; } } function assertTrue( $expected, $message ) { if ( true !== $value ) { echo $message; return false; } else { return true; } } $streamable = 0; $streamableS = '0'; var_dump( (bool) $streamable ); var_dump( (bool) $streamableS );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PXv49
function name:  (null)
number of ops:  11
compiled vars:  !0 = $streamable, !1 = $streamableS
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   28     0  E >   ASSIGN                                                   !0, 0
   29     1        ASSIGN                                                   !1, '0'
   31     2        INIT_FCALL                                               'var_dump'
          3        BOOL                                             ~4      !0
          4        SEND_VAL                                                 ~4
          5        DO_ICALL                                                 
   32     6        INIT_FCALL                                               'var_dump'
          7        BOOL                                             ~6      !1
          8        SEND_VAL                                                 ~6
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Function assertfalse:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PXv49
function name:  assertFalse
number of ops:  9
compiled vars:  !0 = $expected, !1 = $message, !2 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        TYPE_CHECK                                  1018          !2
          3      > JMPZ                                                     ~3, ->7
    6     4    >   ECHO                                                     !1
    7     5      > RETURN                                                   <false>
          6*       JMP                                                      ->8
   11     7    > > RETURN                                                   <true>
   13     8*     > RETURN                                                   null

End of function assertfalse

Function asserttrue:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PXv49
function name:  assertTrue
number of ops:  9
compiled vars:  !0 = $expected, !1 = $message, !2 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   17     2        TYPE_CHECK                                  1014          !2
          3      > JMPZ                                                     ~3, ->7
   19     4    >   ECHO                                                     !1
   20     5      > RETURN                                                   <false>
          6*       JMP                                                      ->8
   24     7    > > RETURN                                                   <true>
   26     8*     > RETURN                                                   null

End of function asserttrue

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.46 ms | 1388 KiB | 15 Q