3v4l.org

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

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

End of function ca

Class C: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.49 ms | 1393 KiB | 13 Q