3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Prueba{ public function saludo() { echo "Hola"; } } $s = "sal"; $obj = new Prueba(); $obj->{"{$var}uso"}();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pD998
function name:  (null)
number of ops:  9
compiled vars:  !0 = $s, !1 = $obj, !2 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, 'sal'
    8     1        NEW                                              $4      'Prueba'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $4
    9     4        NOP                                                      
          5        FAST_CONCAT                                      ~7      !2, 'uso'
          6        INIT_METHOD_CALL                                         !1, ~7
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

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

End of function saludo

End of class Prueba.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.61 ms | 1393 KiB | 13 Q