3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dxPointers = '1, 2, 3, 4, 5'; if (!is_array($dxPointers)) { $dxPointers = (string)$dxPointers === '' ? [] : str_split($dxPointers); } print_r($dxPointers);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 14
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/TWh5X
function name:  (null)
number of ops:  18
compiled vars:  !0 = $dxPointers
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '1%2C+2%2C+3%2C+4%2C+5'
    5     1        TYPE_CHECK                                  128  ~2      !0
          2        BOOL_NOT                                         ~3      ~2
          3      > JMPZ                                                     ~3, ->14
    6     4    >   CAST                                          6  ~4      !0
          5        IS_IDENTICAL                                             ~4, ''
          6      > JMPZ                                                     ~5, ->9
          7    >   QM_ASSIGN                                        ~6      <array>
          8      > JMP                                                      ->13
          9    >   INIT_FCALL                                               'str_split'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $7      
         12        QM_ASSIGN                                        ~6      $7
         13    >   ASSIGN                                                   !0, ~6
    9    14    >   INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.04 ms | 1395 KiB | 17 Q