3v4l.org

run code in 300+ PHP versions simultaneously
<?php class person { public $FirstName = "Bill"; public $MiddleName = "Terence"; public $LastName = "Murphy"; private $Password = "Poppy"; public $Age = 29; public $HomeTown = "Edinburgh"; public $FavouriteColour = "Purple"; public function outputVars() { foreach($this as $var => $value) { echo "$var is $value\n"; } } } $bill = new person(); $bill->outputVars(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LLG9o
function name:  (null)
number of ops:  6
compiled vars:  !0 = $bill
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   NEW                                              $1      'person'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   19     3        INIT_METHOD_CALL                                         !0, 'outputVars'
          4        DO_FCALL                                      0          
   20     5      > RETURN                                                   1

Class person:
Function outputvars:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 10
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 10
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/LLG9o
function name:  outputVars
number of ops:  12
compiled vars:  !0 = $value, !1 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   FETCH_THIS                                       ~2      
          1      > FE_RESET_R                                       $3      ~2, ->10
          2    > > FE_FETCH_R                                       ~4      $3, !0, ->10
          3    >   ASSIGN                                                   !1, ~4
   13     4        ROPE_INIT                                     4  ~7      !1
          5        ROPE_ADD                                      1  ~7      ~7, '+is+'
          6        ROPE_ADD                                      2  ~7      ~7, !0
          7        ROPE_END                                      3  ~6      ~7, '%0A'
          8        ECHO                                                     ~6
   12     9      > JMP                                                      ->2
         10    >   FE_FREE                                                  $3
   15    11      > RETURN                                                   null

End of function outputvars

End of class person.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.2 ms | 1398 KiB | 13 Q