3v4l.org

run code in 500+ PHP versions simultaneously
<?php $stuff = (string) $things ?? 'nothing'; var_dump( $stuff ); echo "\n---\n"; $stuff = (string) ( $things ?? 'nothing' ); var_dump( $stuff );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mInAG
function name:  (null)
number of ops:  16
compiled vars:  !0 = $stuff, !1 = $things
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   CAST                                              6  ~2      !1
          1        COALESCE                                             ~3      ~2
          2        QM_ASSIGN                                            ~3      'nothing'
          3        ASSIGN                                                       !0, ~3
    4     4        INIT_FCALL                                                   'var_dump'
          5        SEND_VAR                                                     !0
          6        DO_ICALL                                                     
    6     7        ECHO                                                         '%0A---%0A'
    8     8        COALESCE                                             ~6      !1
          9        QM_ASSIGN                                            ~6      'nothing'
         10        CAST                                              6  ~7      ~6
         11        ASSIGN                                                       !0, ~7
    9    12        INIT_FCALL                                                   'var_dump'
         13        SEND_VAR                                                     !0
         14        DO_ICALL                                                     
         15      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
151.66 ms | 795 KiB | 9 Q