3v4l.org

run code in 300+ PHP versions simultaneously
<?php $possible_comment_module_statuses = [0, '0', FALSE]; foreach ($possible_comment_module_statuses as $comment_module_status) { var_dump($comment_module_status); print "👇\n"; var_dump($comment_module_status === '0'); var_dump($comment_module_status === 0); var_dump($comment_module_status == '0'); var_dump($comment_module_status == 0); var_dump(!$comment_module_status); print "---\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 29
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 29
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
filename:       /in/2kf2W
function name:  (null)
number of ops:  31
compiled vars:  !0 = $possible_comment_module_statuses, !1 = $comment_module_status
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1      > FE_RESET_R                                       $3      !0, ->29
          2    > > FE_FETCH_R                                               $3, !1, ->29
    6     3    >   INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                                 
    7     6        ECHO                                                     '%F0%9F%91%87%0A'
    8     7        INIT_FCALL                                               'var_dump'
          8        IS_IDENTICAL                                     ~5      !1, '0'
          9        SEND_VAL                                                 ~5
         10        DO_ICALL                                                 
    9    11        INIT_FCALL                                               'var_dump'
         12        IS_IDENTICAL                                     ~7      !1, 0
         13        SEND_VAL                                                 ~7
         14        DO_ICALL                                                 
   10    15        INIT_FCALL                                               'var_dump'
         16        IS_EQUAL                                         ~9      !1, '0'
         17        SEND_VAL                                                 ~9
         18        DO_ICALL                                                 
   11    19        INIT_FCALL                                               'var_dump'
         20        IS_EQUAL                                         ~11     !1, 0
         21        SEND_VAL                                                 ~11
         22        DO_ICALL                                                 
   12    23        INIT_FCALL                                               'var_dump'
         24        BOOL_NOT                                         ~13     !1
         25        SEND_VAL                                                 ~13
         26        DO_ICALL                                                 
   13    27        ECHO                                                     '---%0A'
    5    28      > JMP                                                      ->2
         29    >   FE_FREE                                                  $3
   14    30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.81 ms | 1011 KiB | 14 Q