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] ); 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 );
Output for git.master, rfc.property-hooks
Test Fatal error: Out of memory (allocated 35651584 bytes) (tried to allocate 262144 bytes) in /in/iTQIS on line 24 mmap() failed: [12] Cannot allocate memory mmap() failed: [12] Cannot allocate memory
Process exited with code 255.
Output for git.master_jit
Test Fatal error: Out of memory (allocated 18874368 bytes) (tried to allocate 262144 bytes) in /in/iTQIS on line 24 mmap() failed: [12] Cannot allocate memory mmap() failed: [12] Cannot allocate memory
Process exited with code 255.

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:
36.23 ms | 401 KiB | 8 Q