3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = array(); $additionalImagesPath = null; //array('toto', 'tata'); $result['large_image'] = !is_null($additionalImagesPath) ? array_shift($additionalImagesPath) : ''; var_dump($result);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 10
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ubqf0
function name:  (null)
number of ops:  17
compiled vars:  !0 = $result, !1 = $additionalImagesPath
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, null
    6     2        TYPE_CHECK                                    2  ~5      !1
          3        BOOL_NOT                                         ~6      ~5
          4      > JMPZ                                                     ~6, ->10
          5    >   INIT_FCALL                                               'array_shift'
          6        SEND_REF                                                 !1
          7        DO_ICALL                                         $7      
          8        QM_ASSIGN                                        ~8      $7
          9      > JMP                                                      ->11
         10    >   QM_ASSIGN                                        ~8      ''
         11    >   ASSIGN_DIM                                               !0, 'large_image'
         12        OP_DATA                                                  ~8
    7    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.08 ms | 1395 KiB | 17 Q