3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $userId = null; $moduleId = 5; if(!$userId || !$moduleId) { echo 'sdfsdf'; }
based on evZqq
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
Jump found. Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
Jump found. Position 1 = -2
Branch analysis from position: 8
Branch analysis from position: 6
filename:       /in/HJ1uD
function name:  (null)
number of ops:  9
compiled vars:  !0 = $userId, !1 = $moduleId
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   ASSIGN                                                   !0, null
   3     1        ASSIGN                                                   !1, 5
   4     2        BOOL_NOT                                         ~4      !0
         3      > JMPNZ_EX                                         ~4      ~4, ->6
         4    >   BOOL_NOT                                         ~5      !1
         5        BOOL                                             ~4      ~5
         6    > > JMPZ                                                     ~4, ->8
   5     7    >   ECHO                                                     'sdfsdf'
         8    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0