3v4l.org

run code in 300+ PHP versions simultaneously
<?php $PXName = explode('.php', 'rptOwnerOverview2.php?Action=New')[0]; if (substr($PXName, -1) == '2') { $PXName = substr($PXName, 0, -1); } if (substr($PXName, -1) == '3') { $PXName = substr($PXName, 0, -1); } echo $PXName;

preferences:
28.41 ms | 402 KiB | 5 Q