3v4l.org

run code in 500+ PHP versions simultaneously
<?php class SomeClass { public ?int $value = null; public function run() { return isset($this->value); } public function compare() { return $this->value !== null; } } $someClass = new SomeClass(); var_dump($someClass->run()); var_dump($someClass->compare());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pr9GW
function name:  (null)
number of ops:  14
compiled vars:  !0 = $someClass
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   19     0  E >   NEW                                                  $1      'SomeClass'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   21     3        INIT_FCALL                                                   'var_dump'
          4        INIT_METHOD_CALL                                             !0, 'run'
          5        DO_FCALL                                          0  $4      
          6        SEND_VAR                                                     $4
          7        DO_ICALL                                                     
   22     8        INIT_FCALL                                                   'var_dump'
          9        INIT_METHOD_CALL                                             !0, 'compare'
         10        DO_FCALL                                          0  $6      
         11        SEND_VAR                                                     $6
         12        DO_ICALL                                                     
         13      > RETURN                                                       1

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

End of function run

Function compare:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pr9GW
function name:  compare
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   14     0  E >   FETCH_OBJ_R                                          ~0      'value'
          1        TYPE_CHECK                                      1020  ~1      ~0
          2      > RETURN                                                       ~1
   15     3*     > RETURN                                                       null

End of function compare

End of class SomeClass.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.12 ms | 1709 KiB | 14 Q