3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PNX1A
function name:  (null)
number of ops:  25
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'getordering'
          1        SEND_VAL                                                 'reportTime'
          2        SEND_VAL                                                 'desc'
          3        DO_FCALL                                      0  $0      
          4        CONCAT                                           ~1      $0, '%0A'
          5        ECHO                                                     ~1
   15     6        INIT_FCALL                                               'getordering'
          7        SEND_VAL                                                 'reportTime'
          8        SEND_VAL                                                 'asc'
          9        DO_FCALL                                      0  $2      
         10        CONCAT                                           ~3      $2, '%0A'
         11        ECHO                                                     ~3
   16    12        INIT_FCALL                                               'getordering'
         13        SEND_VAL                                                 'notReportTime'
         14        SEND_VAL                                                 'desc'
         15        DO_FCALL                                      0  $4      
         16        CONCAT                                           ~5      $4, '%0A'
         17        ECHO                                                     ~5
   17    18        INIT_FCALL                                               'getordering'
         19        SEND_VAL                                                 'notReportTime'
         20        SEND_VAL                                                 'asc'
         21        DO_FCALL                                      0  $6      
         22        CONCAT                                           ~7      $6, '%0A'
         23        ECHO                                                     ~7
         24      > RETURN                                                   1

Function getordering:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 15
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PNX1A
function name:  getOrdering
number of ops:  19
compiled vars:  !0 = $sortingColumn, !1 = $sortingDirection
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        IS_IDENTICAL                                             !0, 'reportTime'
          3      > JMPZ                                                     ~2, ->15
    6     4    >   INIT_FCALL                                               'implode'
          5        SEND_VAL                                                 '%2C+'
          6        INIT_FCALL                                               'array_map'
          7        DECLARE_LAMBDA_FUNCTION                          ~3      [0]
          8        BIND_LEXICAL                                             ~3, !1
    8     9        SEND_VAL                                                 ~3
         10        SEND_VAL                                                 <array>
    6    11        DO_ICALL                                         $4      
    8    12        SEND_VAR                                                 $4
    6    13        DO_ICALL                                         $5      
    8    14      > RETURN                                                   $5
   10    15    >   CONCAT                                           ~6      !0, '+'
         16        CONCAT                                           ~7      ~6, !1
         17      > RETURN                                                   ~7
   11    18*     > RETURN                                                   null


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PNX1A
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $column, !1 = $sortingDirection
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
    7     2        CONCAT                                           ~2      !0, '+'
          3        CONCAT                                           ~3      ~2, !1
          4      > RETURN                                                   ~3
    8     5*     > RETURN                                                   null

End of Dynamic Function 0

End of function getordering

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
185.29 ms | 977 KiB | 19 Q