3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "Test"; 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; } $dob = "2894-44-48"; echo "Governing: " . splor_numbers_get_governing( $dob ); echo "Awareness: " . splor_numbers_get_awareness( $dob );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UOr4j
function name:  (null)
number of ops:  13
compiled vars:  !0 = $dob
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     'Test'
   36     1        ASSIGN                                                   !0, '2894-44-48'
   37     2        INIT_FCALL                                               'splor_numbers_get_governing'
          3        SEND_VAR                                                 !0
          4        DO_FCALL                                      0  $2      
          5        CONCAT                                           ~3      'Governing%3A+', $2
          6        ECHO                                                     ~3
   38     7        INIT_FCALL                                               'splor_numbers_get_awareness'
          8        SEND_VAR                                                 !0
          9        DO_FCALL                                      0  $4      
         10        CONCAT                                           ~5      'Awareness%3A+', $4
         11        ECHO                                                     ~5
         12      > 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/UOr4j
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
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        INIT_FCALL_BY_NAME                                       'splor_numbers_get_dob_totals'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $2      
          4        ASSIGN                                                   !1, $2
    7     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
    8    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/UOr4j
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
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
   11     1        INIT_FCALL_BY_NAME                                       'splor_numbers_get_dob_totals'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $2      
          4        ASSIGN                                                   !1, $2
   12     5        FETCH_DIM_R                                      ~4      !1, 2
          6      > RETURN                                                   ~4
   13     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/UOr4j
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
-------------------------------------------------------------------------------------
   15     0  E >   RECV                                             !0      
   16     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '-'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $7      
          5        ASSIGN                                                   !1, $7
   17     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
   18    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
   19    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
   21    24        INIT_FCALL                                               'str_split'
         25        FETCH_DIM_R                                      ~18     !1, 0
         26        SEND_VAL                                                 ~18
         27        DO_ICALL                                         $19     
         28        ASSIGN                                                   !5, $19
   22    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
   24    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
   25    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/UOr4j
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
-------------------------------------------------------------------------------------
   27     0  E >   RECV                                             !0      
   28     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
   29     8      > JMP                                                      ->16
   30     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
   29    16    >   IS_SMALLER                                               9, !1
         17      > JMPNZ                                                    ~8, ->9
   32    18    > > RETURN                                                   !1
   33    19*     > RETURN                                                   null

End of function splor_numbers_get_numerology_totals

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.94 ms | 1407 KiB | 21 Q