3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function test(){echo 'coin';} }; $part1 = 'Te'; $i = new ($part1.'st')(); $i->test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9nRmT
function name:  (null)
number of ops:  9
compiled vars:  !0 = $part1, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 'Te'
    6     1        CONCAT                                           ~3      !0, 'st'
          2        FETCH_CLASS                                   0  $4      ~3
          3        NEW                                              $5      $4
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
    7     6        INIT_METHOD_CALL                                         !1, 'test'
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

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

End of function test

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.63 ms | 1393 KiB | 13 Q