3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = null; var_dump($test->func() ?? 'fail');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bnSb1
function name:  (null)
number of ops:  9
compiled vars:  !0 = $test
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN                                                   !0, null
   5     1        INIT_FCALL                                               'var_dump'
         2        INIT_METHOD_CALL                                         !0, 'func'
         3        DO_FCALL                                      0  $2      
         4        COALESCE                                         ~3      $2
         5        QM_ASSIGN                                        ~3      'fail'
         6        SEND_VAL                                                 ~3
         7        DO_ICALL                                                 
         8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0