3v4l.org

run code in 500+ PHP versions simultaneously
<?php ///on php version < 8.4 class Foo { private $data = null; public function issetData(){ return $this->data !== null; } public function setData($data){ $this->data = $data; } } $foo = new Foo(); var_dump($foo->issetData()); $foo->setData(123); var_dump($foo->issetData());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5eEWn
function name:  (null)
number of ops:  17
compiled vars:  !0 = $foo
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   21     0  E >   NEW                                                  $1      'Foo'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   24     3        INIT_FCALL                                                   'var_dump'
          4        INIT_METHOD_CALL                                             !0, 'issetData'
          5        DO_FCALL                                          0  $4      
          6        SEND_VAR                                                     $4
          7        DO_ICALL                                                     
   27     8        INIT_METHOD_CALL                                             !0, 'setData'
          9        SEND_VAL_EX                                                  123
         10        DO_FCALL                                          0          
   30    11        INIT_FCALL                                                   'var_dump'
         12        INIT_METHOD_CALL                                             !0, 'issetData'
         13        DO_FCALL                                          0  $7      
         14        SEND_VAR                                                     $7
         15        DO_ICALL                                                     
         16      > RETURN                                                       1

Class Foo:
Function issetdata:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5eEWn
function name:  issetData
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   12     0  E >   FETCH_OBJ_R                                          ~0      'data'
          1        TYPE_CHECK                                      1020  ~1      ~0
          2      > RETURN                                                       ~1
   13     3*     > RETURN                                                       null

End of function issetdata

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

End of function setdata

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.45 ms | 1288 KiB | 14 Q