3v4l.org

run code in 300+ PHP versions simultaneously
<?php function splor_numbers_get_governing( $dob ) { $dateTotals = splor_numbers_get_dob_totals( $dob ); return splor_numbers_get_numerology_totals( $dateTotals[0] + $dateTotals[1] + $dateTotals[2] ); } function splor_numbers_get_awareness( $dob ) { $dateTotals = splor_numbers_get_dob_totals( $dob ); return $dateTotals[2]; } function splor_numbers_get_dob_totals( $dob ) { $dataParts = explode( "-", $dob ); $yTotal = splor_numbers_get_numerology_totals( $dataParts[0] ); $mTotal = splor_numbers_get_numerology_totals( $dataParts[1] ); $dTotal = splor_numbers_get_numerology_totals( $dataParts[2] ); $yearparts = str_split( $dataParts[0] ); $lastTwo = splor_numbers_get_numerology_totals( $yearparts[2] + $yearparts[3] ); return array( $yTotal, $mTotal, $dTotal, $lastTwo ); } function splor_numbers_get_numerology_totals( $number ) { $total = array_sum( str_split( $number ) ); while ( $total > 9 ) { $total = array_sum( str_split( $total ) ); } return $total; } function splor_numbers_get_past( $dob ) { $dateTotals = splor_numbers_get_dob_totals( $dob ); return splor_numbers_get_numerology_totals( $dateTotals[0] ); } function splor_numbers_get_gift( $dob ) { $dateTotals = splor_numbers_get_dob_totals( $dob ); return splor_numbers_get_numerology_totals( $dateTotals[3] ); } function splor_numbers_get_purpose( $dob ) { $dateTotals = splor_numbers_get_dob_totals( $dob ); return splor_numbers_get_numerology_totals( $dateTotals[0] + $dateTotals[1] + $dateTotals[2] + $dateTotals[3] ); } $dob = "2894-44-48"; $parts = splor_numbers_get_dob_totals( $dob ); echo "YYYY: " . $parts[0] . " MM: " . $parts[1] . " DD: " . $parts[2]. " YY: " . $parts[3] . "\n"; echo "Governing: " . splor_numbers_get_governing( $dob ) . "\n"; echo "Awareness: " . splor_numbers_get_awareness( $dob ) . "\n"; echo "Past: " . splor_numbers_get_past( $dob ) . "\n"; echo "Gift: " . splor_numbers_get_gift( $dob ) . "\n"; echo "Purpose: " . splor_numbers_get_purpose( $dob ) . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bZHOR
function name:  (null)
number of ops:  49
compiled vars:  !0 = $dob, !1 = $parts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   49     0  E >   ASSIGN                                                   !0, '2894-44-48'
   50     1        INIT_FCALL                                               'splor_numbers_get_dob_totals'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $3      
          4        ASSIGN                                                   !1, $3
   51     5        FETCH_DIM_R                                      ~5      !1, 0
          6        CONCAT                                           ~6      'YYYY%3A+', ~5
          7        CONCAT                                           ~7      ~6, '+MM%3A+'
          8        FETCH_DIM_R                                      ~8      !1, 1
          9        CONCAT                                           ~9      ~7, ~8
         10        CONCAT                                           ~10     ~9, '+DD%3A+'
         11        FETCH_DIM_R                                      ~11     !1, 2
         12        CONCAT                                           ~12     ~10, ~11
         13        CONCAT                                           ~13     ~12, '+YY%3A+'
         14        FETCH_DIM_R                                      ~14     !1, 3
         15        CONCAT                                           ~15     ~13, ~14
         16        CONCAT                                           ~16     ~15, '%0A'
         17        ECHO                                                     ~16
   52    18        INIT_FCALL                                               'splor_numbers_get_governing'
         19        SEND_VAR                                                 !0
         20        DO_FCALL                                      0  $17     
         21        CONCAT                                           ~18     'Governing%3A+', $17
         22        CONCAT                                           ~19     ~18, '%0A'
         23        ECHO                                                     ~19
   53    24        INIT_FCALL                                               'splor_numbers_get_awareness'
         25        SEND_VAR                                                 !0
         26        DO_FCALL                                      0  $20     
         27        CONCAT                                           ~21     'Awareness%3A+', $20
         28        CONCAT                                           ~22     ~21, '%0A'
         29        ECHO                                                     ~22
   55    30        INIT_FCALL                                               'splor_numbers_get_past'
         31        SEND_VAR                                                 !0
         32        DO_FCALL                                      0  $23     
         33        CONCAT                                           ~24     'Past%3A+', $23
         34        CONCAT                                           ~25     ~24, '%0A'
         35        ECHO                                                     ~25
   56    36        INIT_FCALL                                               'splor_numbers_get_gift'
         37        SEND_VAR                                                 !0
         38        DO_FCALL                                      0  $26     
         39        CONCAT                                           ~27     'Gift%3A+', $26
         40        CONCAT                                           ~28     ~27, '%0A'
         41        ECHO                                                     ~28
   57    42        INIT_FCALL                                               'splor_numbers_get_purpose'
         43        SEND_VAR                                                 !0
         44        DO_FCALL                                      0  $29     
         45        CONCAT                                           ~30     'Purpose%3A+', $29
         46        CONCAT                                           ~31     ~30, '%0A'
         47        ECHO                                                     ~31
         48      > RETURN                                                   1

Function splor_numbers_get_governing:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bZHOR
function name:  splor_numbers_get_governing
number of ops:  15
compiled vars:  !0 = $dob, !1 = $dateTotals
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL_BY_NAME                                       'splor_numbers_get_dob_totals'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $2      
          4        ASSIGN                                                   !1, $2
    5     5        INIT_FCALL_BY_NAME                                       'splor_numbers_get_numerology_totals'
          6        FETCH_DIM_R                                      ~4      !1, 0
          7        FETCH_DIM_R                                      ~5      !1, 1
          8        ADD                                              ~6      ~4, ~5
          9        FETCH_DIM_R                                      ~7      !1, 2
         10        ADD                                              ~8      ~6, ~7
         11        SEND_VAL_EX                                              ~8
         12        DO_FCALL                                      0  $9      
         13      > RETURN                                                   $9
    6    14*     > RETURN                                                   null

End of function splor_numbers_get_governing

Function splor_numbers_get_awareness:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bZHOR
function name:  splor_numbers_get_awareness
number of ops:  8
compiled vars:  !0 = $dob, !1 = $dateTotals
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
    9     1        INIT_FCALL_BY_NAME                                       'splor_numbers_get_dob_totals'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $2      
          4        ASSIGN                                                   !1, $2
   10     5        FETCH_DIM_R                                      ~4      !1, 2
          6      > RETURN                                                   ~4
   11     7*     > RETURN                                                   null

End of function splor_numbers_get_awareness

Function splor_numbers_get_dob_totals:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bZHOR
function name:  splor_numbers_get_dob_totals
number of ops:  42
compiled vars:  !0 = $dob, !1 = $dataParts, !2 = $yTotal, !3 = $mTotal, !4 = $dTotal, !5 = $yearparts, !6 = $lastTwo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
   14     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '-'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $7      
          5        ASSIGN                                                   !1, $7
   15     6        INIT_FCALL_BY_NAME                                       'splor_numbers_get_numerology_totals'
          7        CHECK_FUNC_ARG                                           
          8        FETCH_DIM_FUNC_ARG                               $9      !1, 0
          9        SEND_FUNC_ARG                                            $9
         10        DO_FCALL                                      0  $10     
         11        ASSIGN                                                   !2, $10
   16    12        INIT_FCALL_BY_NAME                                       'splor_numbers_get_numerology_totals'
         13        CHECK_FUNC_ARG                                           
         14        FETCH_DIM_FUNC_ARG                               $12     !1, 1
         15        SEND_FUNC_ARG                                            $12
         16        DO_FCALL                                      0  $13     
         17        ASSIGN                                                   !3, $13
   17    18        INIT_FCALL_BY_NAME                                       'splor_numbers_get_numerology_totals'
         19        CHECK_FUNC_ARG                                           
         20        FETCH_DIM_FUNC_ARG                               $15     !1, 2
         21        SEND_FUNC_ARG                                            $15
         22        DO_FCALL                                      0  $16     
         23        ASSIGN                                                   !4, $16
   19    24        INIT_FCALL                                               'str_split'
         25        FETCH_DIM_R                                      ~18     !1, 0
         26        SEND_VAL                                                 ~18
         27        DO_ICALL                                         $19     
         28        ASSIGN                                                   !5, $19
   20    29        INIT_FCALL_BY_NAME                                       'splor_numbers_get_numerology_totals'
         30        FETCH_DIM_R                                      ~21     !5, 2
         31        FETCH_DIM_R                                      ~22     !5, 3
         32        ADD                                              ~23     ~21, ~22
         33        SEND_VAL_EX                                              ~23
         34        DO_FCALL                                      0  $24     
         35        ASSIGN                                                   !6, $24
   22    36        INIT_ARRAY                                       ~26     !2
         37        ADD_ARRAY_ELEMENT                                ~26     !3
         38        ADD_ARRAY_ELEMENT                                ~26     !4
         39        ADD_ARRAY_ELEMENT                                ~26     !6
         40      > RETURN                                                   ~26
   23    41*     > RETURN                                                   null

End of function splor_numbers_get_dob_totals

Function splor_numbers_get_numerology_totals:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 9
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 9
Branch analysis from position: 18
Branch analysis from position: 9
filename:       /in/bZHOR
function name:  splor_numbers_get_numerology_totals
number of ops:  20
compiled vars:  !0 = $number, !1 = $total
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   RECV                                             !0      
   26     1        INIT_FCALL                                               'array_sum'
          2        INIT_FCALL                                               'str_split'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                         $3      
          7        ASSIGN                                                   !1, $3
   27     8      > JMP                                                      ->16
   28     9    >   INIT_FCALL                                               'array_sum'
         10        INIT_FCALL                                               'str_split'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $5      
         13        SEND_VAR                                                 $5
         14        DO_ICALL                                         $6      
         15        ASSIGN                                                   !1, $6
   27    16    >   IS_SMALLER                                               9, !1
         17      > JMPNZ                                                    ~8, ->9
   30    18    > > RETURN                                                   !1
   31    19*     > RETURN                                                   null

End of function splor_numbers_get_numerology_totals

Function splor_numbers_get_past:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bZHOR
function name:  splor_numbers_get_past
number of ops:  11
compiled vars:  !0 = $dob, !1 = $dateTotals
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   33     0  E >   RECV                                             !0      
   34     1        INIT_FCALL                                               'splor_numbers_get_dob_totals'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $2      
          4        ASSIGN                                                   !1, $2
   35     5        INIT_FCALL                                               'splor_numbers_get_numerology_totals'
          6        FETCH_DIM_R                                      ~4      !1, 0
          7        SEND_VAL                                                 ~4
          8        DO_FCALL                                      0  $5      
          9      > RETURN                                                   $5
   36    10*     > RETURN                                                   null

End of function splor_numbers_get_past

Function splor_numbers_get_gift:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bZHOR
function name:  splor_numbers_get_gift
number of ops:  11
compiled vars:  !0 = $dob, !1 = $dateTotals
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   38     0  E >   RECV                                             !0      
   39     1        INIT_FCALL                                               'splor_numbers_get_dob_totals'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $2      
          4        ASSIGN                                                   !1, $2
   40     5        INIT_FCALL                                               'splor_numbers_get_numerology_totals'
          6        FETCH_DIM_R                                      ~4      !1, 3
          7        SEND_VAL                                                 ~4
          8        DO_FCALL                                      0  $5      
          9      > RETURN                                                   $5
   41    10*     > RETURN                                                   null

End of function splor_numbers_get_gift

Function splor_numbers_get_purpose:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bZHOR
function name:  splor_numbers_get_purpose
number of ops:  17
compiled vars:  !0 = $dob, !1 = $dateTotals
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   43     0  E >   RECV                                             !0      
   44     1        INIT_FCALL                                               'splor_numbers_get_dob_totals'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $2      
          4        ASSIGN                                                   !1, $2
   45     5        INIT_FCALL                                               'splor_numbers_get_numerology_totals'
          6        FETCH_DIM_R                                      ~4      !1, 0
          7        FETCH_DIM_R                                      ~5      !1, 1
          8        ADD                                              ~6      ~4, ~5
          9        FETCH_DIM_R                                      ~7      !1, 2
         10        ADD                                              ~8      ~6, ~7
         11        FETCH_DIM_R                                      ~9      !1, 3
         12        ADD                                              ~10     ~8, ~9
         13        SEND_VAL                                                 ~10
         14        DO_FCALL                                      0  $11     
         15      > RETURN                                                   $11
   46    16*     > RETURN                                                   null

End of function splor_numbers_get_purpose

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.02 ms | 1406 KiB | 31 Q