3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($a, $b) { var_dump($a === $b); var_dump($a !== $b); var_dump($a < $b); var_dump($a <= $b); var_dump($a == $b); var_dump($a != $b); var_dump($a >= $b); var_dump($a > $b); var_dump($a <=> $b); } class A{}; class C{}; $a = array(0, 1); $b = array(NAN, 0); test($a, $b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pEklV
function name:  (null)
number of ops:  7
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   ASSIGN                                                   !0, <array>
   19     1        ASSIGN                                                   !1, <array>
   20     2        INIT_FCALL                                               'test'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pEklV
function name:  test
number of ops:  39
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        INIT_FCALL                                               'var_dump'
          3        IS_IDENTICAL                                     ~2      !0, !1
          4        SEND_VAL                                                 ~2
          5        DO_ICALL                                                 
    5     6        INIT_FCALL                                               'var_dump'
          7        IS_NOT_IDENTICAL                                 ~4      !0, !1
          8        SEND_VAL                                                 ~4
          9        DO_ICALL                                                 
    6    10        INIT_FCALL                                               'var_dump'
         11        IS_SMALLER                                       ~6      !0, !1
         12        SEND_VAL                                                 ~6
         13        DO_ICALL                                                 
    7    14        INIT_FCALL                                               'var_dump'
         15        IS_SMALLER_OR_EQUAL                              ~8      !0, !1
         16        SEND_VAL                                                 ~8
         17        DO_ICALL                                                 
    8    18        INIT_FCALL                                               'var_dump'
         19        IS_EQUAL                                         ~10     !0, !1
         20        SEND_VAL                                                 ~10
         21        DO_ICALL                                                 
    9    22        INIT_FCALL                                               'var_dump'
         23        IS_NOT_EQUAL                                     ~12     !0, !1
         24        SEND_VAL                                                 ~12
         25        DO_ICALL                                                 
   10    26        INIT_FCALL                                               'var_dump'
         27        IS_SMALLER_OR_EQUAL                              ~14     !1, !0
         28        SEND_VAL                                                 ~14
         29        DO_ICALL                                                 
   11    30        INIT_FCALL                                               'var_dump'
         31        IS_SMALLER                                       ~16     !1, !0
         32        SEND_VAL                                                 ~16
         33        DO_ICALL                                                 
   12    34        INIT_FCALL                                               'var_dump'
         35        SPACESHIP                                        ~18     !0, !1
         36        SEND_VAL                                                 ~18
         37        DO_ICALL                                                 
   13    38      > RETURN                                                   null

End of function test

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.54 ms | 1402 KiB | 16 Q