3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { function tester($z=1) { echo '22 '.$z; } } $d = new Test(); $mom = array( 'hell' => $d ); $mom['hell']->tester();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gcOkR
function name:  (null)
number of ops:  9
compiled vars:  !0 = $d, !1 = $mom
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $2      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   11     3        INIT_ARRAY                                       ~5      !0, 'hell'
   10     4        ASSIGN                                                   !1, ~5
   14     5        FETCH_DIM_R                                      ~7      !1, 'hell'
          6        INIT_METHOD_CALL                                         ~7, 'tester'
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Class Test:
Function tester:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gcOkR
function name:  tester
number of ops:  4
compiled vars:  !0 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                        !0      1
    4     1        CONCAT                                           ~1      '22+', !0
          2        ECHO                                                     ~1
    5     3      > RETURN                                                   null

End of function tester

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.85 ms | 1384 KiB | 13 Q