3v4l.org

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