3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php /*echo serialize(array(0 => array("AU" => 347, "AT" => 609, "SI" => 1083, "IE" => 942, "RO" => 941, "DE" => 550, "CH" => 337, "FR" => 340, "PL" => 615, "GB" => 341, "ES" => 583, "NL" => 612, "BE" => 610, "IT" => 548, "SE" => 616, "NO" => 613, "FI" => 339, "CZ" => 342, "IL" => 343, "CA" => 345, "NZ" => 614, "LU" => 611, "HU" => 346, "GR" => 344), 1 => array('AT' => 'german', 'DE' => 'german', 'LU' => 'german','ES' => 'spanish','PL' => 'polish','FR' => 'french',0 => 'english')));*/ echo var_dump(strlen('a:2:{i:0;a:24:{s:2:"AU";i:347;s:2:"AT";i:609;s:2:"SI";i:1083;s:2:"IE";i:942;s:2:"RO";i:941;s:2:"DE";i:550;s:2:"CH";i:337;s:2:"FR";i:340;s:2:"PL";i:615;s:2:"GB";i:341;s:2:"ES";i:583;s:2:"NL";i:612;s:2:"BE";i:610;s:2:"IT";i:548;s:2:"SE";i:616;s:2:"NO";i:613;s:2:"FI";i:339;s:2:"CZ";i:342;s:2:"IL";i:343;s:2:"CA";i:345;s:2:"NZ";i:614;s:2:"LU";i:611;s:2:"HU";i:346;s:2:"GR";i:344;}i:1;a:7:{s:2:"AT";s:6:"german";s:2:"DE";s:6:"german";s:2:"LU";s:6:"german";s:2:"ES";s:7:"spanish";s:2:"PL";s:6:"polish";s:2:"FR";s:6:"french";i:0;s:7:"english";}}'));
Output for 4.3.0 - 7.1.0
int(539)