3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = '/documentLibrary/work/marketingProcess/BusinessMarketing/Design/Images/02_Product_Images/04_SHORT-RANGE/NINA/01_NINA-B1/source_WEB'; print_r(dirname($s)); $a = explode(DIRECTORY_SEPARATOR, dirname($s)); print_r($a); echo array_pop($a);
Output for git.master, git.master_jit, rfc.property-hooks
/documentLibrary/work/marketingProcess/BusinessMarketing/Design/Images/02_Product_Images/04_SHORT-RANGE/NINA/01_NINA-B1Array ( [0] => [1] => documentLibrary [2] => work [3] => marketingProcess [4] => BusinessMarketing [5] => Design [6] => Images [7] => 02_Product_Images [8] => 04_SHORT-RANGE [9] => NINA [10] => 01_NINA-B1 ) 01_NINA-B1

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:
61.14 ms | 402 KiB | 8 Q