3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.89 ms | 1398 KiB | 19 Q