3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface MigrateIdMapInterface { const ROLLBACK_DELETE = 0; } function yep($map_row) { echo sprintf('%s yields %s%s', var_export($map_row, TRUE), var_export(($map_row['rollback_action'] ?? NULL) === MigrateIdMapInterface::ROLLBACK_DELETE, TRUE), \PHP_EOL); } yep([]); yep(NULL); yep(FALSE); yep('string'); yep(['rollback_action' => 0]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/C6dJp
function name:  (null)
number of ops:  16
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                                   'yep'
          1        SEND_VAL                                                     <array>
          2        DO_FCALL                                          0          
   12     3        INIT_FCALL                                                   'yep'
          4        SEND_VAL                                                     null
          5        DO_FCALL                                          0          
   13     6        INIT_FCALL                                                   'yep'
          7        SEND_VAL                                                     <false>
          8        DO_FCALL                                          0          
   14     9        INIT_FCALL                                                   'yep'
         10        SEND_VAL                                                     'string'
         11        DO_FCALL                                          0          
   15    12        INIT_FCALL                                                   'yep'
         13        SEND_VAL                                                     <array>
         14        DO_FCALL                                          0          
         15      > RETURN                                                       1

Function yep:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/C6dJp
function name:  yep
number of ops:  19
compiled vars:  !0 = $map_row
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   RECV                                                 !0      
    8     1        INIT_FCALL                                                   'var_export'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     <true>
          4        DO_ICALL                                             $1      
          5        INIT_FCALL                                                   'var_export'
          6        FETCH_DIM_IS                                         ~2      !0, 'rollback_action'
          7        COALESCE                                             ~3      ~2
          8        QM_ASSIGN                                            ~3      null
          9        IS_IDENTICAL                                         ~4      ~3, 0
         10        SEND_VAL                                                     ~4
         11        SEND_VAL                                                     <true>
         12        DO_ICALL                                             $5      
         13        ROPE_INIT                                         4  ~7      $1
         14        ROPE_ADD                                          1  ~7      ~7, '+yields+'
         15        ROPE_ADD                                          2  ~7      ~7, $5
         16        ROPE_END                                          3  ~6      ~7, '%0A'
         17        ECHO                                                         ~6
   10    18      > RETURN                                                       null

End of function yep

Class MigrateIdMapInterface: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
1362.5 ms | 2047 KiB | 19 Q