3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); $a = []; $apple = $a['boy'] ?? 'cat'; var_dump($apple);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WKlAW
function name:  (null)
number of ops:  12
compiled vars:  !0 = $a, !1 = $apple
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
    3     3        ASSIGN                                                   !0, <array>
    4     4        FETCH_DIM_IS                                     ~4      !0, 'boy'
          5        COALESCE                                         ~5      ~4
          6        QM_ASSIGN                                        ~5      'cat'
          7        ASSIGN                                                   !1, ~5
    5     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.21 ms | 1385 KiB | 17 Q