3v4l.org

run code in 300+ PHP versions simultaneously
<?php class LOL { private function rofl($iksdeh) { echo "ROFL: $iksdeh<br>"; } public function test() { $x = 'rofl'; $this->{$x}('test'); } } $l = new LOL; $l->test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cn0Rf
function name:  (null)
number of ops:  6
compiled vars:  !0 = $l
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $1      'LOL'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   15     3        INIT_METHOD_CALL                                         !0, 'test'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class LOL:
Function rofl:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cn0Rf
function name:  rofl
number of ops:  6
compiled vars:  !0 = $iksdeh
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        ROPE_INIT                                     3  ~2      'ROFL%3A+'
          2        ROPE_ADD                                      1  ~2      ~2, !0
          3        ROPE_END                                      2  ~1      ~2, '%3Cbr%3E'
          4        ECHO                                                     ~1
    6     5      > RETURN                                                   null

End of function rofl

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cn0Rf
function name:  test
number of ops:  5
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN                                                   !0, 'rofl'
   10     1        INIT_METHOD_CALL                                         !0
          2        SEND_VAL_EX                                              'test'
          3        DO_FCALL                                      0          
   11     4      > RETURN                                                   null

End of function test

End of class LOL.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.78 ms | 1394 KiB | 13 Q