3v4l.org

run code in 300+ PHP versions simultaneously
<?php $firstOrder = '1,2,3'; $lastOrder = '3,2,4'; print_r(array_diff(explode(',', $firstOrder), explode(',', $lastOrder)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Apbns
function name:  (null)
number of ops:  18
compiled vars:  !0 = $firstOrder, !1 = $lastOrder
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '1%2C2%2C3'
    3     1        ASSIGN                                                   !1, '3%2C2%2C4'
    4     2        INIT_FCALL                                               'print_r'
          3        INIT_FCALL                                               'array_diff'
          4        INIT_FCALL                                               'explode'
          5        SEND_VAL                                                 '%2C'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        INIT_FCALL                                               'explode'
         10        SEND_VAL                                                 '%2C'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $5      
         13        SEND_VAR                                                 $5
         14        DO_ICALL                                         $6      
         15        SEND_VAR                                                 $6
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.61 ms | 1386 KiB | 19 Q