3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); $options = [ 1, 2, ]; uasort($options, strnatcasecmp(...)); var_dump($options); var_dump(strnatcasecmp(1, 2));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DHEoB
function name:  (null)
number of ops:  18
compiled vars:  !0 = $options
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        INIT_FCALL                                               'uasort'
          2        SEND_REF                                                 !0
          3        INIT_FCALL                                               'strnatcasecmp'
          4        ZEND_CALLABLE_CONVERT                            ~2      
          5        SEND_VAL                                                 ~2
          6        DO_ICALL                                                 
   10     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
   12    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'strnatcasecmp'
         12        SEND_VAL                                                 1
         13        SEND_VAL                                                 2
         14        DO_ICALL                                         $5      
         15        SEND_VAR                                                 $5
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.04 ms | 1438 KiB | 16 Q