3v4l.org

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

Function %00%7Bclosure%7D%2Fin%2FIJrhJ%3A8%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IJrhJ
function name:  {closure}
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E > > RETURN                                                   0
          1*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FIJrhJ%3A8%240

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.46 ms | 1394 KiB | 13 Q