3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a1 = array("Cars", "Trucks", "Vans", "Boats",); $a2 = array('Boats', 'Trucks', 'Vans', 'Cars'); $a3 = array('Cars', 'Trucks', 'Vans', 'Boats'); $d1 = array_diff($a1, $a2); $d2 = array_diff($a2, $a3); $d3 = array_diff($a1, $a3); $e1 = $a1 === $a2; $e2 = $a2 === $a3; $e3 = $a1 === $a3; var_dump(/*$d1, $d2, $d3, */$e1, $e2, $e3);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fvJOL
function name:  (null)
number of ops:  30
compiled vars:  !0 = $a1, !1 = $a2, !2 = $a3, !3 = $d1, !4 = $d2, !5 = $d3, !6 = $e1, !7 = $e2, !8 = $e3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    6     2        ASSIGN                                                   !2, <array>
    8     3        INIT_FCALL                                               'array_diff'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $12     
          7        ASSIGN                                                   !3, $12
   10     8        INIT_FCALL                                               'array_diff'
          9        SEND_VAR                                                 !1
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                         $14     
         12        ASSIGN                                                   !4, $14
   12    13        INIT_FCALL                                               'array_diff'
         14        SEND_VAR                                                 !0
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                         $16     
         17        ASSIGN                                                   !5, $16
   14    18        IS_IDENTICAL                                     ~18     !0, !1
         19        ASSIGN                                                   !6, ~18
   16    20        IS_IDENTICAL                                     ~20     !1, !2
         21        ASSIGN                                                   !7, ~20
   18    22        IS_IDENTICAL                                     ~22     !0, !2
         23        ASSIGN                                                   !8, ~22
   20    24        INIT_FCALL                                               'var_dump'
         25        SEND_VAR                                                 !6
         26        SEND_VAR                                                 !7
         27        SEND_VAR                                                 !8
         28        DO_ICALL                                                 
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.13 ms | 1387 KiB | 17 Q