3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct() { $this->name = $name; } public function doStuff() { ?> <p>Your name is: <?= $this->name; ?></p> <?php } } $test = new Foo('John Doe'); $test->doStuff();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mBNGD
function name:  (null)
number of ops:  7
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   NEW                                              $1      'Foo'
          1        SEND_VAL_EX                                              'John+Doe'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   19     4        INIT_METHOD_CALL                                         !0, 'doStuff'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class Foo:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mBNGD
function name:  __construct
number of ops:  3
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN_OBJ                                               'name'
          1        OP_DATA                                                  !0
    8     2      > RETURN                                                   null

End of function __construct

Function dostuff:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mBNGD
function name:  doStuff
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   ECHO                                                     '%09%09%09%3Cp%3EYour+name+is%3A+'
          1        FETCH_OBJ_R                                      ~0      'name'
          2        ECHO                                                     ~0
          3        ECHO                                                     '%3C%2Fp%3E%0A%09%09'
   15     4      > RETURN                                                   null

End of function dostuff

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.09 ms | 1394 KiB | 13 Q