3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = '0'; var_dump($test === 0|'0'); var_dump($test == 0); var_dump($test == '0'); var_dump($test === 0||'0');
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 17, Position 2 = 18
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/mV5EA
function name:  (null)
number of ops:  21
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '0'
    3     1        INIT_FCALL                                               'var_dump'
          2        IS_IDENTICAL                                     ~2      !0, 0
          3        BW_OR                                            ~3      ~2, '0'
          4        SEND_VAL                                                 ~3
          5        DO_ICALL                                                 
    4     6        INIT_FCALL                                               'var_dump'
          7        IS_EQUAL                                         ~5      !0, 0
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                                 
    5    10        INIT_FCALL                                               'var_dump'
         11        IS_EQUAL                                         ~7      !0, '0'
         12        SEND_VAL                                                 ~7
         13        DO_ICALL                                                 
    6    14        INIT_FCALL                                               'var_dump'
         15        IS_IDENTICAL                                     ~9      !0, 0
         16      > JMPNZ_EX                                         ~9      ~9, ->18
         17    >   BOOL                                             ~9      '0'
         18    >   SEND_VAL                                                 ~9
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.19 ms | 1395 KiB | 15 Q