3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 23
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 23
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/Sa8h2
function name:  (null)
number of ops:  25
compiled vars:  !0 = $myarr, !1 = $search2, !2 = $search5, !3 = $search12, !4 = $searchValue
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   12     1        ASSIGN                                                   !1, '2'
   13     2        ASSIGN                                                   !2, '5'
   14     3        ASSIGN                                                   !3, '12'
   29     4        INIT_ARRAY                                       ~9      !1
          5        ADD_ARRAY_ELEMENT                                ~9      !2
          6        ADD_ARRAY_ELEMENT                                ~9      !3
          7      > FE_RESET_R                                       $10     ~9, ->23
          8    > > FE_FETCH_R                                               $10, !4, ->23
   30     9    >   ECHO                                                     !4
         10        ECHO                                                     '+is+'
         11        INIT_FCALL                                               'myinarray'
         12        SEND_VAR                                                 !4
         13        SEND_VAR                                                 !0
         14        DO_FCALL                                      0  $11     
         15      > JMPZ                                                     $11, ->18
         16    >   QM_ASSIGN                                        ~12     ''
         17      > JMP                                                      ->19
         18    >   QM_ASSIGN                                        ~12     'NOT+'
         19    >   ECHO                                                     ~12
         20        ECHO                                                     'in+the+array'
         21        ECHO                                                     '%0A'
   29    22      > JMP                                                      ->8
         23    >   FE_FREE                                                  $10
   31    24      > RETURN                                                   1

Function myinarray:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Sa8h2
function name:  myInArray
number of ops:  14
compiled vars:  !0 = $needle, !1 = $haystack
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   17     2        INIT_FCALL                                               'in_array'
   18     3        SEND_VAR                                                 !0
   19     4        INIT_FCALL                                               'array_reduce'
   20     5        SEND_VAR                                                 !1
   21     6        DECLARE_LAMBDA_FUNCTION                          ~2      [0]
   23     7        SEND_VAL                                                 ~2
   24     8        SEND_VAL                                                 <array>
   19     9        DO_ICALL                                         $3      
   24    10        SEND_VAR                                                 $3
   17    11        DO_ICALL                                         $4      
   24    12      > RETURN                                                   $4
   27    13*     > RETURN                                                   null


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 20
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Sa8h2
function name:  {closure}
number of ops:  27
compiled vars:  !0 = $incrementor, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   22     2        INIT_FCALL                                               'array_merge'
          3        SEND_VAR                                                 !0
          4        INIT_FCALL                                               'strpos'
          5        SEND_VAR                                                 !1
          6        SEND_VAL                                                 '-'
          7        DO_ICALL                                         $2      
          8        TYPE_CHECK                                  1018          $2
          9      > JMPZ                                                     ~3, ->20
         10    >   INIT_FCALL                                               'range'
         11        INIT_FCALL                                               'explode'
         12        SEND_VAL                                                 '-'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $4      
         15        SEND_UNPACK                                              $4
         16        CHECK_UNDEF_ARGS                                         
         17        DO_ICALL                                         $5      
         18        QM_ASSIGN                                        ~6      $5
         19      > JMP                                                      ->23
         20    >   CAST                                          4  ~7      !1
         21        INIT_ARRAY                                       ~8      ~7
         22        QM_ASSIGN                                        ~6      ~8
         23    >   SEND_VAL                                                 ~6
         24        DO_ICALL                                         $9      
         25      > RETURN                                                   $9
   23    26*     > RETURN                                                   null

End of Dynamic Function 0

End of function myinarray

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.38 ms | 979 KiB | 20 Q