3v4l.org

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

Class test:
Function hey:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OnBoe
function name:  hey
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   FETCH_THIS                                       ~0      
          1      > RETURN                                                   ~0
   11     2*     > RETURN                                                   null

End of function hey

End of class test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.14 ms | 1394 KiB | 15 Q