3v4l.org

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

Class test:
Function test1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hPP7g
function name:  test1
number of ops:  3
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        ASSIGN                                                   !0, 'WORKS%21%21'
    6     2      > RETURN                                                   null

End of function test1

End of class test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.59 ms | 1384 KiB | 13 Q