3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "0"; var_dump($a != NULL); // "0" != "" var_dump((bool)$a == NULL);// false == false var_dump((bool)$a); // false var_dump($a != NULL && (bool) $a == NULL); var_dump($a == false);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 17, Position 2 = 20
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/XdcBZ
function name:  (null)
number of ops:  27
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '0'
    3     1        INIT_FCALL                                               'var_dump'
          2        IS_NOT_EQUAL                                     ~2      !0, null
          3        SEND_VAL                                                 ~2
          4        DO_ICALL                                                 
    4     5        INIT_FCALL                                               'var_dump'
          6        BOOL                                             ~4      !0
          7        IS_EQUAL                                         ~5      ~4, null
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                                 
    5    10        INIT_FCALL                                               'var_dump'
         11        BOOL                                             ~7      !0
         12        SEND_VAL                                                 ~7
         13        DO_ICALL                                                 
    6    14        INIT_FCALL                                               'var_dump'
         15        IS_NOT_EQUAL                                     ~9      !0, null
         16      > JMPZ_EX                                          ~9      ~9, ->20
         17    >   BOOL                                             ~10     !0
         18        IS_EQUAL                                         ~11     ~10, null
         19        BOOL                                             ~9      ~11
         20    >   SEND_VAL                                                 ~9
         21        DO_ICALL                                                 
    7    22        INIT_FCALL                                               'var_dump'
         23        BOOL_NOT                                         ~13     !0
         24        SEND_VAL                                                 ~13
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.25 ms | 1395 KiB | 15 Q