3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{}; class C{}; $a = array(new A, new A); $b = array(new A, new C); $c = $a <=> $b; echo "$c\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XvubY
function name:  (null)
number of ops:  20
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   NEW                                              $3      'A'
          1        DO_FCALL                                      0          
          2        INIT_ARRAY                                       ~5      $3
          3        NEW                                              $6      'A'
          4        DO_FCALL                                      0          
          5        ADD_ARRAY_ELEMENT                                ~5      $6
          6        ASSIGN                                                   !0, ~5
    7     7        NEW                                              $9      'A'
          8        DO_FCALL                                      0          
          9        INIT_ARRAY                                       ~11     $9
         10        NEW                                              $12     'C'
         11        DO_FCALL                                      0          
         12        ADD_ARRAY_ELEMENT                                ~11     $12
         13        ASSIGN                                                   !1, ~11
    8    14        SPACESHIP                                        ~15     !0, !1
         15        ASSIGN                                                   !2, ~15
    9    16        NOP                                                      
         17        FAST_CONCAT                                      ~17     !2, '%0A'
         18        ECHO                                                     ~17
         19      > RETURN                                                   1

Class A: [no user functions]
Class C: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.76 ms | 1393 KiB | 13 Q