3v4l.org

run code in 300+ PHP versions simultaneously
<?php $👽 = true; class 🤓 { private $state = null; public function __construct($state) { $this->setState($state); echo 'Wat heb ik gedaan... ' . $this->getState(); } private function setState($state) { $this->state = $state; } private function getState() { return $this->state; } } if ($👽) { new 🤓('🤔'); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 6
Branch analysis from position: 2
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/W0QJ5
function name:  (null)
number of ops:  7
compiled vars:  !0 = $👽
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <true>
   27     1      > JMPZ                                                     !0, ->6
   28     2    >   NEW                                              $2      '%F0%9F%A4%93'
          3        SEND_VAL_EX                                              '%F0%9F%A4%94'
          4        DO_FCALL                                      0          
          5        FREE                                                     $2
   29     6    > > RETURN                                                   1

Class 🤓:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/W0QJ5
function name:  __construct
number of ops:  9
compiled vars:  !0 = $state
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   11     1        INIT_METHOD_CALL                                         'setState'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
   13     4        INIT_METHOD_CALL                                         'getState'
          5        DO_FCALL                                      0  $2      
          6        CONCAT                                           ~3      'Wat+heb+ik+gedaan...+', $2
          7        ECHO                                                     ~3
   14     8      > RETURN                                                   null

End of function __construct

Function setstate:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/W0QJ5
function name:  setState
number of ops:  4
compiled vars:  !0 = $state
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   RECV                                             !0      
   18     1        ASSIGN_OBJ                                               'state'
          2        OP_DATA                                                  !0
   19     3      > RETURN                                                   null

End of function setstate

Function getstate:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/W0QJ5
function name:  getState
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   FETCH_OBJ_R                                      ~0      'state'
          1      > RETURN                                                   ~0
   24     2*     > RETURN                                                   null

End of function getstate

End of class 🤓.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.29 ms | 1395 KiB | 13 Q