3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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] ); return array( $yTotal, $mTotal, $dTotal ); } function splor_numbers_get_numerology_totals( $number ) { $total = array_sum( str_split( $number ) ); if ( $total > 9 ) { $total = splor_numbers_get_numerology_totals( $number ); } return $total; } $dob = "2894-04-18"; echo "Governing: " . splor_numbers_get_governing( $dob ); echo "Awareness: " . splor_numbers_get_awareness( $dob );
based on U5HNh
Output for 7.0.0 - 7.1.0
Test Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 262144 bytes) in /in/iTQIS on line 24
Process exited with code 255.
Output for 5.4.0 - 5.6.28
Test Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 130968 bytes) in /in/iTQIS on line 26
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Test Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 523800 bytes) in /in/iTQIS on line 26
Process exited with code 255.
Output for 5.0.0 - 5.2.17
Test
Process exited with code 139.
Output for 4.4.5 - 4.4.9
Test Fatal error: Call to undefined function: str_split() in /in/iTQIS on line 24
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Test Fatal error: Call to undefined function: str_split() in /in/iTQIS on line 24
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Test Fatal error: Call to undefined function: str_split() in /in/iTQIS on line 24