3v4l.org

run code in 300+ PHP versions simultaneously
<?php function sortLCBR($a, $b) { return ($a['credit_status']>$b['credit_status']) && strcmp($a['credit_status'], $b['credit_status']); } $text='s:10:"LCBRResult";a:3:{i:0;a:11:{s:14:"borrower_count";s:1:"1";s:6:"status";s:1:"B";s:11:"credit_type";s:2:"60";s:10:"valid_from";s:10:"2008-05-21";s:8:"valid_to";s:10:"2008-10-13";s:6:"amount";s:6:"200.00";s:8:"currency";s:3:"LVL";s:13:"credit_status";s:2:"40";s:15:"origination_way";s:0:"";s:14:"completion_way";s:0:"";s:15:"collateral_type";a:1:{s:14:"CollateralType";s:3:"110";}}i:1;a:11:{s:14:"borrower_count";s:1:"1";s:6:"status";s:1:"B";s:11:"credit_type";s:2:"70";s:10:"valid_from";s:10:"2012-12-08";s:8:"valid_to";s:10:"2013-06-19";s:6:"amount";s:6:"234.90";s:8:"currency";s:3:"LVL";s:13:"credit_status";s:2:"40";s:15:"origination_way";s:2:"10";s:14:"completion_way";s:2:"10";s:15:"collateral_type";a:1:{s:14:"CollateralType";s:3:"110";}}i:2;a:11:{s:14:"borrower_count";s:1:"1";s:6:"status";s:1:"G";s:11:"credit_type";s:2:"70";s:10:"valid_from";s:10:"2013-10-02";s:8:"valid_to";s:10:"2016-10-20";s:6:"amount";s:7:"2034.71";s:8:"currency";s:3:"EUR";s:13:"credit_status";s:2:"10";s:15:"origination_way";s:2:"10";s:14:"completion_way";s:0:"";s:15:"collateral_type";a:0:{}}}s:21:"lcbr_obligation_total";i:0;'; $arr = deserialize($text); print_r($arr);
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Uncaught Error: Call to undefined function deserialize() in /in/mAND3:10 Stack trace: #0 {main} thrown in /in/mAND3 on line 10
Process exited with code 255.
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
Fatal error: Call to undefined function deserialize() in /in/mAND3 on line 10
Process exited with code 255.

preferences:
272.61 ms | 402 KiB | 335 Q