3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.13 ms | 1394 KiB | 15 Q