3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [ NAN, NAN, 1.2, NAN, 3.2, NAN, 2.4, ]; sort($a); print_r($a); $a = [ 1.2, NAN, 3.2, 2.4, ]; rsort($a); print_r($a); echo 1 <=> NAN, NAN <=> 1, NAN <=> NAN; // 111
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fpR4G
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   13     1        INIT_FCALL                                               'sort'
          2        SEND_REF                                                 !0
          3        DO_ICALL                                                 
   14     4        INIT_FCALL                                               'print_r'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
   17     7        ASSIGN                                                   !0, <array>
   24     8        INIT_FCALL                                               'rsort'
          9        SEND_REF                                                 !0
         10        DO_ICALL                                                 
   25    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
   27    14        ECHO                                                     1
         15        ECHO                                                     1
         16        ECHO                                                     1
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.9 ms | 1006 KiB | 16 Q