<?php $strs = ['0C', '-1C', '-2C', '20C', '30C', -'50C'];foreach($strs AS $str){ echo intval($str).PHP_EOL;}
Standard input is empty
0 -1 -2 20 30 -50
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!