3v4l.org

run code in 300+ PHP versions simultaneously
<?php phpinfo();exit; $array = array(1,2,3); //$default = []; $test = $array?:$default; var_dump($test); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/bFvF6
function name:  (null)
number of ops:  11
compiled vars:  !0 = $array, !1 = $test, !2 = $default
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'phpinfo'
          1        DO_ICALL                                                 
          2      > EXIT                                                     
    3     3*       ASSIGN                                                   !0, <array>
    6     4*       JMP_SET                                          ~5      !0, ->6
          5*       QM_ASSIGN                                        ~5      !2
          6*       ASSIGN                                                   !1, ~5
    8     7*       INIT_FCALL                                               'var_dump'
          8*       SEND_VAR                                                 !1
          9*       DO_ICALL                                                 
    9    10*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.59 ms | 1394 KiB | 17 Q