3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $pos = strpos('PHP 5.6.10', phpversion()); $pos_old = strpos('5.5.9', phpversion()); $arr_new = array(); $arr_old = array(); if($pos !== false){ $arr = timezone_abbreviations_list(); $i=1; foreach($arr as $key => $a){ foreach($a as $index => $value){ if($i > 1845){ echo $i.'. Abbrevation : '.$key.', offset : '.$value['offset'].', timezone : '.$value['timezone_id']; echo "\n"; } $i++; } } } ?>
based on NuhKd
Output for 5.3.18 - 5.6.9, 5.6.11 - 7.2.0
Output for 5.6.10
1846. Abbrevation : z, offset : 0, timezone :