3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array1 = [ '0' => '2018-08-21 10:00:00', '1' => '2018-08-28 10:00:00', '2' => '2018-09-04 10:00:00', '3' => '2018-09-11 10:00:00', '4' => '2018-09-18 10:00:00', ]; $array2 = [ '0' => '2018-08-21 10:00:00', '1' => '2018-08-28 10:00:00', '2' => '2018-09-04 10:00:00', '3' => '2018-09-11 10:00:00', '4' => '2018-09-18 10:00:00', '5' => '2019-09-18 10:00:00', ]; $diff = array_diff($array2, $array1); var_dump($array1, $array2, $diff);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oeXHR
function name:  (null)
number of ops:  13
compiled vars:  !0 = $array1, !1 = $array2, !2 = $diff
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   11     1        ASSIGN                                                       !1, <array>
   20     2        INIT_FCALL                                                   'array_diff'
          3        SEND_VAR                                                     !1
          4        SEND_VAR                                                     !0
          5        DO_ICALL                                             $5      
          6        ASSIGN                                                       !2, $5
   22     7        INIT_FCALL                                                   'var_dump'
          8        SEND_VAR                                                     !0
          9        SEND_VAR                                                     !1
         10        SEND_VAR                                                     !2
         11        DO_ICALL                                                     
         12      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.42 ms | 2197 KiB | 15 Q