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";

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0090.00916.63
8.3.50.0160.00316.38
8.3.40.0070.01019.01
8.3.30.0070.00718.93
8.3.20.0040.00421.73
8.3.10.0070.00021.90
8.3.00.0000.00819.79
8.2.180.0070.00716.75
8.2.170.0090.00622.96
8.2.160.0090.00921.23
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00020.43
8.2.120.0000.00726.35
8.2.110.0040.00721.03
8.2.100.0050.00518.09
8.2.90.0090.00019.07
8.2.80.0000.00817.97
8.2.70.0000.00917.75
8.2.60.0000.00817.92
8.2.50.0040.00418.10
8.2.40.0030.00620.43
8.2.30.0080.00021.06
8.2.20.0050.00218.13
8.2.10.0000.00818.09
8.2.00.0000.00718.11
8.1.280.0100.01025.92
8.1.270.0030.00522.19
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0030.00623.98
8.1.230.0090.00319.42
8.1.220.0090.00017.76
8.1.210.0030.00518.77
8.1.200.0060.00317.22
8.1.190.0040.00417.35
8.1.180.0080.00018.10
8.1.170.0080.00018.63
8.1.160.0050.00318.79
8.1.150.0000.00720.21
8.1.140.0090.00019.47
8.1.130.0040.00420.52
8.1.120.0000.00717.45
8.1.110.0040.00417.59
8.1.100.0040.00417.53
8.1.90.0050.00317.55
8.1.80.0040.00417.46
8.1.70.0050.00217.44
8.1.60.0040.00417.52
8.1.50.0000.01317.62
8.1.40.0100.00017.57
8.1.30.0050.00317.63
8.1.20.0000.00817.68
8.1.10.0060.00317.62
8.1.00.0040.00417.48
8.0.300.0040.00818.77
8.0.290.0000.00716.75
8.0.280.0070.00018.53
8.0.270.0000.00717.23
8.0.260.0030.00317.02
8.0.250.0070.00017.10
8.0.240.0040.00417.05
8.0.230.0050.00317.16
8.0.220.0030.00617.07
8.0.210.0030.00717.05
8.0.200.0040.00417.15
8.0.190.0060.00317.07
8.0.180.0030.00516.98
8.0.170.0040.00417.09
8.0.160.0040.00416.99
8.0.150.0000.00817.08
8.0.140.0040.00317.09
8.0.130.0000.00713.50
8.0.120.0000.00816.96
8.0.110.0020.00516.98
8.0.100.0030.00517.12
8.0.90.0050.00217.10
8.0.80.0180.00417.14
8.0.70.0050.00317.16
8.0.60.0000.00817.16
8.0.50.0030.00516.92
8.0.30.0090.00917.25
8.0.20.0090.01017.40
8.0.10.0000.00717.19
8.0.00.0100.00717.14
7.4.330.0050.00015.55
7.4.320.0000.00716.66
7.4.300.0000.00616.65
7.4.290.0070.00016.64
7.4.280.0030.00616.75
7.4.270.0000.00716.71
7.4.260.0030.00316.70
7.4.250.0040.00416.61
7.4.240.0030.00316.66
7.4.230.0080.00016.75
7.4.220.0030.01516.77
7.4.210.0060.00916.70
7.4.200.0000.00716.63
7.4.160.0030.01316.75
7.4.150.0090.00917.40
7.4.140.0100.00817.86
7.4.130.0100.01016.74
7.4.120.0100.01316.73
7.4.110.0110.00616.62
7.4.100.0030.01316.70
7.4.90.0060.01316.72
7.4.80.0130.00319.39
7.4.70.0120.00616.66
7.4.60.0070.01016.66
7.4.50.0050.00716.57
7.4.40.0140.01016.59
7.4.30.0110.00616.70
7.4.00.0000.01215.25
7.3.330.0040.00413.45
7.3.320.0050.00013.36
7.3.310.0050.00316.54
7.3.300.0030.00316.51
7.3.290.0070.00716.45
7.3.280.0090.00916.49
7.3.270.0030.01417.40
7.3.260.0160.00616.74
7.3.250.0090.00816.74
7.3.240.0080.01116.60
7.3.230.0150.00916.51
7.3.210.0140.00616.43
7.3.200.0060.01416.76
7.3.190.0110.00616.73
7.3.180.0120.00916.46
7.3.170.0060.01016.47
7.3.160.0160.00016.75
7.3.10.0040.00816.63
7.3.00.0000.00916.70
7.2.330.0070.01116.63
7.2.320.0050.00716.79
7.2.310.0030.01416.57
7.2.300.0000.01816.62
7.2.290.0040.01316.71
7.2.130.0090.00616.92
7.2.120.0090.00616.75
7.2.110.0030.01316.98
7.2.100.0000.01517.10
7.2.90.0060.00916.96
7.2.80.0110.00717.16
7.2.70.0100.01016.76
7.2.60.0100.01016.98
7.2.50.0100.00717.03
7.2.40.0030.00917.11
7.2.30.0060.01116.93
7.2.20.0120.00316.95
7.2.10.0060.00616.65
7.2.00.0050.00818.20
7.1.250.0060.00316.11
7.1.200.0150.00415.90
7.1.100.0060.00618.27
7.1.70.0030.00517.31
7.1.60.0170.01035.45
7.1.50.0230.01035.04
7.1.40.0130.01334.61
7.1.30.0130.01734.67
7.1.20.0170.01334.88
7.1.10.0070.01016.71
7.1.00.0030.01016.98
7.0.200.0100.00316.83
7.0.190.0000.01316.92
7.0.180.0030.01316.36
7.0.170.0070.01016.65
7.0.160.0030.01016.36
7.0.150.0030.01016.48
7.0.140.0030.01016.70
7.0.130.0070.01016.62
7.0.120.0070.01016.57
7.0.110.0070.00716.46
7.0.100.0000.01316.69
7.0.90.0030.01016.48
7.0.80.0030.01316.44
7.0.70.0070.00716.39
7.0.60.0130.00316.38
7.0.50.0100.00716.52
7.0.40.0030.01016.58
7.0.30.0030.01016.73
7.0.20.0000.01316.54
7.0.10.0000.01316.57
7.0.00.0070.00716.58

preferences:
59.39 ms | 401 KiB | 5 Q