3v4l.org

run code in 300+ 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', ]; $diff = array_diff($array1, $array2); var_dump($array1, $array2, $diff);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/guC6v
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>
   19     2        INIT_FCALL                                               'array_diff'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !2, $5
   21     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.0.0


preferences:
155.64 ms | 1394 KiB | 17 Q