3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function returnSomething(){ return null; } } $obj = new Test; var_dump(null === $ob->returnSomething());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lQlEk
function name:  (null)
number of ops:  10
compiled vars:  !0 = $obj, !1 = $ob
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $2      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   10     3        INIT_FCALL                                               'var_dump'
          4        INIT_METHOD_CALL                                         !1, 'returnSomething'
          5        DO_FCALL                                      0  $5      
          6        TYPE_CHECK                                    2  ~6      $5
          7        SEND_VAL                                                 ~6
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Class Test:
Function returnsomething:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lQlEk
function name:  returnSomething
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                   null
    5     1*     > RETURN                                                   null

End of function returnsomething

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.16 ms | 1394 KiB | 15 Q