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; } $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";
Output for git.master, git.master_jit, rfc.property-hooks
YYYY: 5 MM: 8 DD: 3 YY: 4 Governing: 7 Awareness: 3

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
49.46 ms | 401 KiB | 8 Q