3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'Hello World'; $sql = [1 => ["id" => 1, "num" => "123"], 2 => ["id" => 2, "num" => "456"]]; $mongo = ["id" => 1, "num" => "123"]; $a = array_diff($mongo, array_values($sql)); var_dump($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ehTdj
function name:  (null)
number of ops:  15
compiled vars:  !0 = $sql, !1 = $mongo, !2 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     'Hello+World'
    3     1        ASSIGN                                                   !0, <array>
    4     2        ASSIGN                                                   !1, <array>
    6     3        INIT_FCALL                                               'array_diff'
          4        SEND_VAR                                                 !1
          5        INIT_FCALL                                               'array_values'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $5      
          8        SEND_VAR                                                 $5
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !2, $6
    7    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.01 ms | 1394 KiB | 19 Q