3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { function func($str) { echo $str; } } $c = new C(); $sq = 'hoge'; $dq = "hoge"; $fn = 'func'; $c->func('beta'); $c->func($sq); $c->func($dq); $c->$fn('beta'); $c->$fn($sq); $c->$fn($dq);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bNZVY
function name:  (null)
number of ops:  25
compiled vars:  !0 = $c, !1 = $sq, !2 = $dq, !3 = $fn
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $4      'C'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $4
   11     3        ASSIGN                                                   !1, 'hoge'
   12     4        ASSIGN                                                   !2, 'hoge'
   14     5        ASSIGN                                                   !3, 'func'
   16     6        INIT_METHOD_CALL                                         !0, 'func'
          7        SEND_VAL_EX                                              'beta'
          8        DO_FCALL                                      0          
   17     9        INIT_METHOD_CALL                                         !0, 'func'
         10        SEND_VAR_EX                                              !1
         11        DO_FCALL                                      0          
   18    12        INIT_METHOD_CALL                                         !0, 'func'
         13        SEND_VAR_EX                                              !2
         14        DO_FCALL                                      0          
   20    15        INIT_METHOD_CALL                                         !0, !3
         16        SEND_VAL_EX                                              'beta'
         17        DO_FCALL                                      0          
   21    18        INIT_METHOD_CALL                                         !0, !3
         19        SEND_VAR_EX                                              !1
         20        DO_FCALL                                      0          
   22    21        INIT_METHOD_CALL                                         !0, !3
         22        SEND_VAR_EX                                              !2
         23        DO_FCALL                                      0          
         24      > RETURN                                                   1

Class C:
Function func:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bNZVY
function name:  func
number of ops:  3
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        ECHO                                                     !0
    6     2      > RETURN                                                   null

End of function func

End of class C.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.3 ms | 1395 KiB | 13 Q