3v4l.org

run code in 300+ PHP versions simultaneously
<?php $address = array( "id" => 17570527.00, "seq" => 0, "line1" => "1 Heron Close", "line2" => "Bradwell", "post_town" => "Great Yarmouth", "county" => "Norfolk", "postcode" => "NR31 8LY", "mailsort" => "54136", "barcode" => "(NR318LY1AA)", "is_residential" => 1, "is_small_organisation" => 0, "is_large_organisation" => 0, ); $lines = array(); if (array_key_exists("line1", $address)) $lines[] = $address["line1"]; if (array_key_exists("line2", $address)) $lines[] = $address["line2"]; if (array_key_exists("line3", $address)) $lines[] = $address["line3"]; if (array_key_exists("line4", $address)) $lines[] = $address["line4"]; if (array_key_exists("line4", $address)) $lines[] = $address["line5"]; echo implode("\n", $lines);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 17
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 22
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 27
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
Branch analysis from position: 22
Branch analysis from position: 17
Branch analysis from position: 12
Branch analysis from position: 7
filename:       /in/dUP0U
function name:  (null)
number of ops:  33
compiled vars:  !0 = $address, !1 = $lines
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   18     1        ASSIGN                                                   !1, <array>
   19     2        ARRAY_KEY_EXISTS                                         'line1', !0
          3      > JMPZ                                                     ~4, ->7
          4    >   FETCH_DIM_R                                      ~6      !0, 'line1'
          5        ASSIGN_DIM                                               !1
          6        OP_DATA                                                  ~6
   20     7    >   ARRAY_KEY_EXISTS                                         'line2', !0
          8      > JMPZ                                                     ~7, ->12
          9    >   FETCH_DIM_R                                      ~9      !0, 'line2'
         10        ASSIGN_DIM                                               !1
         11        OP_DATA                                                  ~9
   21    12    >   ARRAY_KEY_EXISTS                                         'line3', !0
         13      > JMPZ                                                     ~10, ->17
         14    >   FETCH_DIM_R                                      ~12     !0, 'line3'
         15        ASSIGN_DIM                                               !1
         16        OP_DATA                                                  ~12
   22    17    >   ARRAY_KEY_EXISTS                                         'line4', !0
         18      > JMPZ                                                     ~13, ->22
         19    >   FETCH_DIM_R                                      ~15     !0, 'line4'
         20        ASSIGN_DIM                                               !1
         21        OP_DATA                                                  ~15
   23    22    >   ARRAY_KEY_EXISTS                                         'line4', !0
         23      > JMPZ                                                     ~16, ->27
         24    >   FETCH_DIM_R                                      ~18     !0, 'line5'
         25        ASSIGN_DIM                                               !1
         26        OP_DATA                                                  ~18
   25    27    >   INIT_FCALL                                               'implode'
         28        SEND_VAL                                                 '%0A'
         29        SEND_VAR                                                 !1
         30        DO_ICALL                                         $19     
         31        ECHO                                                     $19
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.09 ms | 1396 KiB | 15 Q