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, $sql); var_dump($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Pd5AQ
function name:  (null)
number of ops:  12
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        SEND_VAR                                                 !0
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !2, $5
    7     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.95 ms | 1385 KiB | 17 Q