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_ukey ($mongo, $sql, function($item) {return $item['num'];} ); var_dump($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/W2JCs
function name:  (null)
number of ops:  14
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_ukey'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !0
          6        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FW2JCs%3A6%240'
          7        SEND_VAL                                                 ~5
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !2, $6
    7    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FW2JCs%3A6%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/W2JCs
function name:  {closure}
number of ops:  4
compiled vars:  !0 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        FETCH_DIM_R                                      ~1      !0, 'num'
          2      > RETURN                                                   ~1
          3*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FW2JCs%3A6%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.07 ms | 1395 KiB | 17 Q