3v4l.org

run code in 300+ PHP versions simultaneously
<?php null->test ?? "test"; isset(null->test) ?: "test"; null->test->call() ?? "test"; empty(null->test->call()) ?: "test";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fltef
function name:  (null)
number of ops:  22
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_OBJ_IS                                     ~0      null, 'test'
          1        COALESCE                                         ~1      ~0
          2        QM_ASSIGN                                        ~1      'test'
          3        FREE                                                     ~1
    4     4        ISSET_ISEMPTY_PROP_OBJ                           ~2      null, 'test'
          5        JMP_SET                                          ~3      ~2, ->7
          6        QM_ASSIGN                                        ~3      'test'
          7        FREE                                                     ~3
    6     8        FETCH_OBJ_R                                      ~4      null, 'test'
          9        INIT_METHOD_CALL                                         ~4, 'call'
         10        DO_FCALL                                      0  $5      
         11        COALESCE                                         ~6      $5
         12        QM_ASSIGN                                        ~6      'test'
         13        FREE                                                     ~6
    7    14        FETCH_OBJ_R                                      ~7      null, 'test'
         15        INIT_METHOD_CALL                                         ~7, 'call'
         16        DO_FCALL                                      0  $8      
         17        BOOL_NOT                                         ~9      $8
         18        JMP_SET                                          ~10     ~9, ->20
         19        QM_ASSIGN                                        ~10     'test'
         20        FREE                                                     ~10
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.42 ms | 1010 KiB | 13 Q