3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function test($b){ if(!empty($b)){ var_dump($b); } } test(); test(null);
based on TRoNL
Finding entry points
Branch analysis from position: 0
Jump found. (Code = 62) Position 1 = -2
filename:       /in/sHPao
function name:  (null)
number of ops:  7
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
   9     1        INIT_FCALL                                               'test'
         2        DO_FCALL                                      0          
  10     3        INIT_FCALL                                               'test'
         4        SEND_VAL                                                 null
         5        DO_FCALL                                      0          
         6      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
Jump found. (Code = 43) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
Jump found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/sHPao
function name:  test
number of ops:  8
compiled vars:  !0 = $b
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   RECV                                             !0      
   4     1        ISSET_ISEMPTY_VAR                           293601280  ~1      !0
         2        BOOL_NOT                                         ~2      ~1
         3      > JMPZ                                                     ~2, ->7
   5     4    >   INIT_FCALL                                               'var_dump'
         5        SEND_VAR                                                 !0
         6        DO_ICALL                                                 
   7     7    > > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 7.1.0