3v4l.org

run code in 300+ PHP versions simultaneously
<?php $celda_anio_ini = 'v.2009;2009'; $celda_anio_fin = 'v.2017;2017'; if(preg_match('/.*(Jan|Feb)?\s([\d]{4})\-/' , $celda_anio_ini, $result)) { $anio_ini = $result[2]; }elseif(preg_match('/.*[A-Za-z]{3}\s([\d]{4})\-/' , $celda_anio_ini, $result)) { $anio_ini = '('.$result[1].')'; } if(preg_match('/.*\-(Nov|Dec)?\s([\d]{4})/' , $celda_anio_fin, $result)) { $anio_fin = $result[2]; }elseif(preg_match('/.*\-[A-Za-z]{3}\s([\d]{4})/' , $celda_anio_fin, $result)) { $anio_fin = '('.$result[1].')'; } echo "$celda_anio_ini, $celda_anio_fin\n..."; echo "$anio_ini - $anio_fin\n\n";
Output for git.master, git.master_jit, rfc.property-hooks
v.2009;2009, v.2017;2017 ... Warning: Undefined variable $anio_ini in /in/CBTOq on line 19 Warning: Undefined variable $anio_fin in /in/CBTOq on line 19 -

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
63.64 ms | 401 KiB | 8 Q