3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SomeClass {} $instance = new SomeClass(); $reference = &$instance; echo (($instance === $reference) ? 'TRUE' : 'FALSE') ."\n"; $assigned = $instance; echo (($instance === $assigned) ? 'TRUE' : 'FALSE') ."\n"; $instance = null; echo (isset($instance) ? $instance : "NULL") . "\n"; echo (isset($assigned) ? $assigned : "NULL") . "\n"; echo (isset($reference) ? $reference : "NULL") . "\n";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 24
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 31
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
2 jumps found. (Code = 43) Position 1 = 36, Position 2 = 38
Branch analysis from position: 36
1 jumps found. (Code = 42) Position 1 = 39
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 38
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
2 jumps found. (Code = 43) Position 1 = 36, Position 2 = 38
Branch analysis from position: 36
Branch analysis from position: 38
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 31
Branch analysis from position: 29
Branch analysis from position: 31
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 24
Branch analysis from position: 22
Branch analysis from position: 24
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
Branch analysis from position: 16
filename:       /in/8ZQF7
function name:  (null)
number of ops:  42
compiled vars:  !0 = $instance, !1 = $reference, !2 = $assigned
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   NEW                                              $3      'SomeClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    6     3        ASSIGN_REF                                               !1, !0
    8     4        IS_IDENTICAL                                             !0, !1
          5      > JMPZ                                                     ~7, ->8
          6    >   QM_ASSIGN                                        ~8      'TRUE'
          7      > JMP                                                      ->9
          8    >   QM_ASSIGN                                        ~8      'FALSE'
          9    >   CONCAT                                           ~9      ~8, '%0A'
         10        ECHO                                                     ~9
   10    11        ASSIGN                                                   !2, !0
   12    12        IS_IDENTICAL                                             !0, !2
         13      > JMPZ                                                     ~11, ->16
         14    >   QM_ASSIGN                                        ~12     'TRUE'
         15      > JMP                                                      ->17
         16    >   QM_ASSIGN                                        ~12     'FALSE'
         17    >   CONCAT                                           ~13     ~12, '%0A'
         18        ECHO                                                     ~13
   14    19        ASSIGN                                                   !0, null
   16    20        ISSET_ISEMPTY_CV                                         !0
         21      > JMPZ                                                     ~15, ->24
         22    >   QM_ASSIGN                                        ~16     !0
         23      > JMP                                                      ->25
         24    >   QM_ASSIGN                                        ~16     'NULL'
         25    >   CONCAT                                           ~17     ~16, '%0A'
         26        ECHO                                                     ~17
   17    27        ISSET_ISEMPTY_CV                                         !2
         28      > JMPZ                                                     ~18, ->31
         29    >   QM_ASSIGN                                        ~19     !2
         30      > JMP                                                      ->32
         31    >   QM_ASSIGN                                        ~19     'NULL'
         32    >   CONCAT                                           ~20     ~19, '%0A'
         33        ECHO                                                     ~20
   18    34        ISSET_ISEMPTY_CV                                         !1
         35      > JMPZ                                                     ~21, ->38
         36    >   QM_ASSIGN                                        ~22     !1
         37      > JMP                                                      ->39
         38    >   QM_ASSIGN                                        ~22     'NULL'
         39    >   CONCAT                                           ~23     ~22, '%0A'
         40        ECHO                                                     ~23
         41      > RETURN                                                   1

Class SomeClass: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.63 ms | 1403 KiB | 13 Q