3v4l.org

run code in 300+ PHP versions simultaneously
<?php class User { } $u = new User(); $language = $u->preferred_language ?? 'test'; echo $language;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WefYk
function name:  (null)
number of ops:  9
compiled vars:  !0 = $u, !1 = $language
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   NEW                                              $2      'User'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    8     3        FETCH_OBJ_IS                                     ~5      !0, 'preferred_language'
          4        COALESCE                                         ~6      ~5
          5        QM_ASSIGN                                        ~6      'test'
          6        ASSIGN                                                   !1, ~6
    9     7        ECHO                                                     !1
          8      > RETURN                                                   1

Class User: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.07 ms | 1392 KiB | 13 Q