3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $row=array('_id' => 'ORD=298/HP/13^LN=3^RL=1^DM_ORD=G31308^DM_LN=2^DM_RL=1^DM_LN_IT=^'); $DM_LN_IT= rtrim(substr($row['_id'], strrpos($row['_id']+1, '=')),'^'); var_dump( $DM_LN_IT);
Output for 7.1.0
Warning: A non-numeric value encountered in /in/3Z1Tm on line 5 string(63) "ORD=298/HP/13^LN=3^RL=1^DM_ORD=G31308^DM_LN=2^DM_RL=1^DM_LN_IT="
Output for 4.3.0 - 7.0.14
string(63) "ORD=298/HP/13^LN=3^RL=1^DM_ORD=G31308^DM_LN=2^DM_RL=1^DM_LN_IT="