3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "0"; var_dump($a != NULL); // "0" != "" var_dump((bool)$a == NULL); var_dump($a != NULL && (bool) $a == NULL);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 13, Position 2 = 16
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/9YT5V
function name:  (null)
number of ops:  19
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        IS_NOT_EQUAL                                     ~7      !0, null
         12      > JMPZ_EX                                          ~7      ~7, ->16
         13    >   BOOL                                             ~8      !0
         14        IS_EQUAL                                         ~9      ~8, null
         15        BOOL                                             ~7      ~9
         16    >   SEND_VAL                                                 ~7
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.41 ms | 1395 KiB | 15 Q