3v4l.org

run code in 300+ PHP versions simultaneously
<?php func('vvv'); $getnews = false; function func($param) { return $param; } $recordList = array("aaa", "bbb", "ccc", "ddd"); $nary = array("10", "1", "100", "99"); $recordList = array("1", "2", "3"); $nary = array("15/6","15/12", "15/73"); array_multisort($nary, SORT_DESC , $recordList); echo mb_detect_encoding($nary[0]); var_dump($recordList); $nary = array("10", "1", "100", "99"); sort($nary, SORT_DESC); var_dump(strtotime()); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3UvhX
function name:  (null)
number of ops:  32
compiled vars:  !0 = $getnews, !1 = $recordList, !2 = $nary
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL_BY_NAME                                       'func'
          1        SEND_VAL_EX                                              'vvv'
          2        DO_FCALL                                      0          
    7     3        ASSIGN                                                   !0, <false>
   15     4        ASSIGN                                                   !1, <array>
   16     5        ASSIGN                                                   !2, <array>
   18     6        ASSIGN                                                   !1, <array>
   19     7        ASSIGN                                                   !2, <array>
   20     8        INIT_FCALL                                               'array_multisort'
          9        SEND_REF                                                 !2
         10        SEND_VAL                                                 3
         11        SEND_REF                                                 !1
         12        DO_ICALL                                                 
   22    13        INIT_FCALL                                               'mb_detect_encoding'
         14        FETCH_DIM_R                                      ~10     !2, 0
         15        SEND_VAL                                                 ~10
         16        DO_ICALL                                         $11     
         17        ECHO                                                     $11
   24    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !1
         20        DO_ICALL                                                 
   26    21        ASSIGN                                                   !2, <array>
   27    22        INIT_FCALL                                               'sort'
         23        SEND_REF                                                 !2
         24        SEND_VAL                                                 3
         25        DO_ICALL                                                 
   29    26        INIT_FCALL                                               'var_dump'
         27        INIT_FCALL                                               'strtotime'
         28        DO_ICALL                                         $15     
         29        SEND_VAR                                                 $15
         30        DO_ICALL                                                 
   31    31      > RETURN                                                   1

Function func:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3UvhX
function name:  func
number of ops:  3
compiled vars:  !0 = $param
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   12     1      > RETURN                                                   !0
   13     2*     > RETURN                                                   null

End of function func

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.98 ms | 1396 KiB | 23 Q