3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array ( 0 => array ( 'name' => 'test', 'address_1' => 'test', 'address_2' => '', 'address_3' => '', 'address_4' => '', 'postcode' => 'test', 'country' => '1', 'tel' => '123566', ), 1 => array ( 'name' => 'test1wefrwerferf', 'address_1' => 'test', 'address_2' => '', 'address_3' => '', 'address_4' => '', 'postcode' => 'test', 'country' => '1', 'tel' => '123566', ), 2 => array ( 'name' => 'test', 'address_1' => 'test', 'address_2' => '', 'address_3' => '', 'address_4' => '', 'postcode' => 'test', 'country' => '1', 'tel' => '123566', ), 3 => array ( 'name' => 'test', 'address_1' => 'test', 'address_2' => '', 'address_3' => '', 'address_4' => '', 'postcode' => 'test', 'country' => '1', 'tel' => '123566', ), ); // $acount = array_count_values($a); $diff = ($a[0] === $a[1]); if($a[0] === $a[1]) { $diff = true; } else { $diff = false; } var_dump($diff); print_r($diff); print_r(array_keys($a));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/La5lM
function name:  (null)
number of ops:  25
compiled vars:  !0 = $a, !1 = $diff
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   52     1        FETCH_DIM_R                                      ~3      !0, 0
          2        FETCH_DIM_R                                      ~4      !0, 1
          3        IS_IDENTICAL                                     ~5      ~3, ~4
          4        ASSIGN                                                   !1, ~5
   54     5        FETCH_DIM_R                                      ~7      !0, 0
          6        FETCH_DIM_R                                      ~8      !0, 1
          7        IS_IDENTICAL                                             ~7, ~8
          8      > JMPZ                                                     ~9, ->11
   55     9    >   ASSIGN                                                   !1, <true>
         10      > JMP                                                      ->12
   57    11    >   ASSIGN                                                   !1, <false>
   60    12    >   INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
   62    15        INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
   64    18        INIT_FCALL                                               'print_r'
         19        INIT_FCALL                                               'array_keys'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                         $14     
         22        SEND_VAR                                                 $14
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.78 ms | 1395 KiB | 19 Q