3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = 'Y+ 10;'; $arrvalidrules = explode(';', $value); // On vérifie qu'il n'y bien que deux valeurs. if (count($arrvalidrules) == 2) { $intyearend = null; if ($arrvalidrules[0]!='') { if (is_numeric($arrvalidrules[0])) { $intyearstart=intval($arrvalidrules[0]); } else if (strpos($arrvalidrules[0], 'Y') === 0) { $intyearstart = date('Y'); if (($intsignpos = strpos($arrvalidrules[0], '+')) !== false) { $intyearstart += intval(trim(substr($arrvalidrules[0], $intsignpos))); } else if (($intsignpos = strpos($arrvalidrules[0], '-')) !== false) { $intyearstart -= intval(trim(substr($arrvalidrules[0], $intsignpos))); } } else { $intyearstart = false; } } else { $intyearstart = 0; } } echo 'Date : '.$intyearstart.' - '.$intyearend;

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.0110.00418.28
8.3.50.0130.01022.12
8.3.40.0120.00618.79
8.3.30.0150.00019.16
8.3.20.0080.00020.21
8.3.10.0000.00723.52
8.3.00.0080.00020.55
8.2.180.0000.01516.75
8.2.170.0120.00322.96
8.2.160.0130.00322.26
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0000.00822.16
8.2.110.0040.00422.12
8.2.100.0130.00017.91
8.2.90.0000.00919.34
8.2.80.0040.00418.03
8.2.70.0000.00817.50
8.2.60.0050.00317.93
8.2.50.0000.00818.07
8.2.40.0050.00518.11
8.2.30.0070.00018.28
8.2.20.0070.00017.92
8.2.10.0080.00019.57
8.2.00.0040.00417.86
8.1.280.0070.00725.92
8.1.270.0000.00822.14
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0090.00023.84
8.1.230.0070.00419.00
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0030.00617.48
8.1.190.0030.00517.51
8.1.180.0040.00418.10
8.1.170.0060.00318.80
8.1.160.0060.00622.09
8.1.150.0000.00718.79
8.1.140.0050.00217.51
8.1.130.0070.00017.91
8.1.120.0050.00217.64
8.1.110.0080.00317.56
8.1.100.0030.00617.52
8.1.90.0000.00717.59
8.1.80.0000.00817.61
8.1.70.0070.00017.54
8.1.60.0030.00617.59
8.1.50.0030.00517.51
8.1.40.0060.00317.64
8.1.30.0000.00817.71
8.1.20.0040.00417.74
8.1.10.0000.00717.67
8.1.00.0030.00517.60
8.0.300.0040.00418.77
8.0.290.0040.00417.28
8.0.280.0000.00718.55
8.0.270.0050.00217.35
8.0.260.0000.00716.98
8.0.250.0000.00617.10
8.0.240.0070.00016.99
8.0.230.0000.00717.11
8.0.220.0040.00417.07
8.0.210.0000.00716.95
8.0.200.0050.00317.09
8.0.190.0000.00716.97
8.0.180.0000.00716.99
8.0.170.0000.00816.99
8.0.160.0070.00016.93
8.0.150.0030.00516.89
8.0.140.0000.00716.92
8.0.130.0030.00313.31
8.0.120.0030.00516.86
8.0.110.0000.00816.96
8.0.100.0000.00717.03
8.0.90.0000.01017.00
8.0.80.0060.01017.04
8.0.70.0000.00817.04
8.0.60.0000.00717.06
8.0.50.0000.00717.01
8.0.30.0070.01217.18
8.0.20.0130.00717.40
8.0.10.0040.00417.14
8.0.00.0100.01016.85
7.4.330.0050.00015.22
7.4.320.0060.00016.60
7.4.300.0030.00316.61
7.4.290.0000.00816.60
7.4.280.0040.00416.53
7.4.270.0070.00016.59
7.4.260.0040.00416.68
7.4.250.0030.00316.64
7.4.240.0000.00716.64
7.4.230.0020.00516.50
7.4.220.0100.00716.64
7.4.210.0110.00616.64
7.4.200.0070.00016.50
7.4.190.0070.00016.55
7.4.160.0070.01016.70
7.4.150.0120.00617.40
7.4.140.0070.01417.86
7.4.130.0070.01016.81
7.4.120.0130.00716.70
7.4.110.0060.01016.52
7.4.100.0070.01116.80
7.4.90.0070.01716.64
7.4.80.0060.01216.74
7.4.70.0100.00716.63
7.4.60.0090.00616.75
7.4.50.0040.00416.68
7.4.40.0080.00522.77
7.4.30.0060.00916.60
7.4.00.0070.01115.17
7.3.330.0050.00013.30
7.3.320.0000.00613.25
7.3.310.0070.00016.23
7.3.300.0030.00316.39
7.3.290.0100.01016.39
7.3.280.0090.00916.33
7.3.270.0100.00717.40
7.3.260.0100.01316.60
7.3.250.0090.01116.54
7.3.240.0070.01116.58
7.3.230.0130.00316.55
7.3.210.0100.00716.49
7.3.200.0120.00619.39
7.3.190.0120.01016.59
7.3.180.0130.00316.61
7.3.170.0100.01316.69
7.3.160.0060.00916.56
7.3.120.0070.00914.94
7.3.110.0050.01115.04
7.3.100.0050.01014.91
7.3.90.0050.01014.59
7.3.80.0050.01014.89
7.3.70.0100.00714.96
7.3.60.0030.00614.76
7.3.50.0000.01514.75
7.3.40.0050.01014.85
7.3.30.0040.00914.83
7.3.20.0050.00616.53
7.3.10.0090.00416.72
7.3.00.0080.00716.58
7.2.330.0140.01016.89
7.2.320.0060.00916.89
7.2.310.0080.00916.83
7.2.300.0160.00716.95
7.2.290.0100.00716.99
7.2.250.0070.00915.17
7.2.240.0110.00715.21
7.2.230.0030.01014.91
7.2.220.0030.01315.20
7.2.210.0090.00514.97
7.2.200.0070.00715.21
7.2.190.0060.00815.06
7.2.180.0030.01415.01
7.2.170.0060.01015.27
7.2.160.0030.01315.18
7.2.150.0040.01117.14
7.2.140.0100.00316.85
7.2.130.0110.00716.63
7.2.120.0000.01616.94
7.2.110.0000.00916.97
7.2.100.0000.01116.74
7.2.90.0000.01616.95
7.2.80.0000.01016.79
7.2.70.0040.00716.60
7.2.60.0060.00316.96
7.2.50.0040.01116.85
7.2.40.0030.00616.88
7.2.30.0000.01517.29
7.2.20.0040.01417.26
7.2.10.0090.00617.07
7.2.00.0000.00916.84
7.1.330.0020.01515.93
7.1.320.0030.01215.89
7.1.310.0020.01115.84
7.1.300.0060.00815.70
7.1.290.0050.01116.05
7.1.280.0070.00815.94
7.1.270.0050.00815.74
7.1.260.0060.00815.70
7.1.250.0040.01115.94
7.1.240.0000.01215.96
7.1.230.0060.00916.07
7.1.220.0040.00815.73
7.1.210.0030.00715.82
7.1.200.0090.00315.96
7.1.190.0000.00815.75
7.1.180.0060.00916.03
7.1.170.0060.00615.82
7.1.160.0070.00415.95
7.1.150.0090.00615.86
7.1.140.0050.00515.82
7.1.130.0090.00615.96
7.1.120.0030.01015.83
7.1.110.0130.00016.00
7.1.100.0070.00315.89
7.1.90.0030.00616.07
7.1.80.0000.00815.46
7.1.70.0070.00316.58
7.1.60.0060.00917.41
7.1.50.0080.00916.32
7.1.40.0030.00615.90
7.1.30.0000.01715.98
7.1.20.0030.01016.05
7.1.10.0000.01415.80
7.1.00.0090.03619.26
7.0.330.0000.00815.50
7.0.320.0090.00015.39
7.0.310.0040.00815.58
7.0.300.0100.00315.66
7.0.290.0070.00715.12
7.0.280.0080.00815.55
7.0.270.0030.01015.63
7.0.260.0100.00315.52
7.0.250.0120.00415.61
7.0.240.0060.00615.61
7.0.230.0040.00415.55
7.0.220.0030.00915.68
7.0.210.0030.01215.48
7.0.200.0100.00616.24
7.0.190.0110.00015.23
7.0.180.0060.00815.41
7.0.170.0090.00315.49
7.0.160.0030.00715.48
7.0.150.0030.00915.64
7.0.140.0070.03718.72
7.0.130.0060.00915.36
7.0.120.0070.00715.54
7.0.110.0060.00315.34
7.0.100.0040.00415.59
7.0.90.0050.00615.69
7.0.80.0130.03917.76
7.0.70.0050.04517.65
7.0.60.0080.04117.88
7.0.50.0100.04317.88
7.0.40.0030.04816.70
7.0.30.0070.04016.91
7.0.20.0050.02516.63
7.0.10.0050.02816.83
7.0.00.0120.04216.84
5.6.400.0060.00614.46
5.6.390.0000.01114.70
5.6.380.0030.00914.44
5.6.370.0000.01114.41
5.6.360.0080.00814.48
5.6.350.0000.00914.23
5.6.340.0000.01314.58
5.6.330.0030.01014.30
5.6.320.0000.01114.34
5.6.310.0070.00714.23
5.6.300.0120.00314.50
5.6.290.0060.00614.51
5.6.280.0070.04117.76
5.6.270.0000.01114.18
5.6.260.0100.00014.75
5.6.250.0030.00614.72
5.6.240.0070.00714.44
5.6.230.0110.04317.35
5.6.220.0030.04817.50
5.6.210.0060.04217.46
5.6.200.0100.03917.64
5.6.190.0100.04017.65
5.6.180.0080.03017.71
5.6.170.0050.04617.67
5.6.160.0070.04317.73
5.6.150.0110.02717.68
5.6.140.0070.04117.69
5.6.130.0070.03017.86
5.6.120.0140.03817.79
5.6.110.0030.02717.74
5.6.100.0020.02717.83
5.6.90.0110.02817.91
5.6.80.0120.03417.42
5.6.70.0050.02617.33
5.6.60.0130.03517.29
5.6.50.0040.04617.44
5.6.40.0070.03817.51
5.6.30.0100.03817.43
5.6.20.0120.02017.17
5.6.10.0050.03117.41
5.6.00.0000.04917.41
5.5.380.0000.01114.36
5.5.370.0080.04117.51
5.5.360.0070.04817.21
5.5.350.0080.03517.39
5.5.340.0020.05017.64
5.5.330.0030.03717.77
5.5.320.0070.04417.69
5.5.310.0110.02517.64
5.5.300.0120.02517.47
5.5.290.0070.04717.48
5.5.280.0080.04617.61
5.5.270.0060.02317.62
5.5.260.0050.04517.35
5.5.250.0100.02717.57
5.5.240.0130.02617.26
5.5.230.0030.03017.26
5.5.220.0090.04217.44
5.5.210.0070.02817.16
5.5.200.0050.04517.22
5.5.190.0060.03317.37
5.5.180.0030.03117.29
5.5.170.0080.00814.26
5.5.160.0060.04017.28
5.5.150.0080.03817.30
5.5.140.0080.04117.34
5.5.130.0050.04217.23
5.5.120.0030.04617.25
5.5.110.0070.03517.27
5.5.100.0060.04417.29
5.5.90.0110.02317.32
5.5.80.0050.02617.29
5.5.70.0070.03117.29
5.5.60.0100.04017.22
5.5.50.0070.03717.13
5.5.40.0090.03017.21
5.5.30.0050.02717.08
5.5.20.0120.03817.21
5.5.10.0090.04117.38
5.5.00.0070.04317.07
5.4.450.0060.04115.27
5.4.440.0080.03815.23
5.4.430.0070.02715.13
5.4.420.0050.02215.10
5.4.410.0060.04015.21
5.4.400.0090.02815.15
5.4.390.0030.02814.91
5.4.380.0070.02714.99
5.4.370.0080.02015.02
5.4.360.0070.03615.07
5.4.350.0020.03015.00
5.4.340.0030.04015.20
5.4.330.0000.01111.29
5.4.320.0030.02715.13
5.4.310.0030.04214.95
5.4.300.0070.03815.03
5.4.290.0060.03014.86
5.4.280.0050.03815.15
5.4.270.0030.04515.02
5.4.260.0030.03215.11
5.4.250.0080.03614.99
5.4.240.0050.02015.17
5.4.230.0070.02614.98
5.4.220.0050.02814.87
5.4.210.0100.02815.08
5.4.200.0130.03315.05
5.4.190.0100.03315.03
5.4.180.0090.04215.06
5.4.170.0070.04215.03
5.4.160.0070.03715.04
5.4.150.0050.03815.24
5.4.140.0040.03413.69
5.4.130.0040.03413.78
5.4.120.0030.03613.66
5.4.110.0040.04313.79
5.4.100.0050.04013.63
5.4.90.0040.04213.72
5.4.80.0020.02913.79
5.4.70.0080.03213.77
5.4.60.0150.02313.81
5.4.50.0030.02313.63
5.4.40.0050.03713.58
5.4.30.0090.03913.71
5.4.20.0100.03313.55
5.4.10.0120.03213.60
5.4.00.0100.03413.45
5.3.290.0060.04212.74
5.3.280.0070.04212.56
5.3.270.0070.04112.57
5.3.260.0070.04012.65
5.3.250.0030.04012.59
5.3.240.0100.02712.66
5.3.230.0040.03712.60
5.3.220.0070.04012.43
5.3.210.0070.03212.51
5.3.200.0090.03412.49
5.3.190.0080.03612.58
5.3.180.0070.02312.55
5.3.170.0060.04012.60
5.3.160.0050.04312.58
5.3.150.0080.03312.47
5.3.140.0030.03812.57
5.3.130.0070.03712.59
5.3.120.0030.03012.48
5.3.110.0010.03812.56
5.3.100.0070.02912.34
5.3.90.0100.02512.21
5.3.80.0060.02812.13
5.3.70.0060.03912.19
5.3.60.0080.03812.35
5.3.50.0080.03712.12
5.3.40.0050.03212.22
5.3.30.0030.04312.24
5.3.20.0040.02412.16
5.3.10.0050.03911.80
5.3.00.0090.03511.84
5.2.170.0100.05711.00
5.2.160.0030.06311.15
5.2.150.0000.06711.20
5.2.140.0030.03711.18
5.2.130.0030.06011.07
5.2.120.0070.05711.11
5.2.110.0270.03311.09
5.2.100.0070.03010.96
5.2.90.0100.02711.15
5.2.80.0030.04310.97
5.2.70.0030.03310.97
5.2.60.0030.06311.11
5.2.50.0070.05710.82
5.2.40.0030.05711.00
5.2.30.0030.05011.00
5.2.20.0070.06310.96
5.2.10.0100.04310.87
5.2.00.0030.04310.75
5.1.60.0000.0409.99
5.1.50.0130.04710.08
5.1.40.0100.0339.98
5.1.30.0070.05710.40
5.1.20.0070.05310.22
5.1.10.0100.0509.91
5.1.00.0070.05310.16
5.0.50.0070.0378.66
5.0.40.0100.0378.50
5.0.30.0000.0678.32
5.0.20.0030.0438.27
5.0.10.0000.0308.28
5.0.00.0000.0438.24
4.4.90.0030.0137.61
4.4.80.0030.0207.61
4.4.70.0000.0337.61
4.4.60.0030.0337.61
4.4.50.0070.0307.61
4.4.40.0000.0537.61
4.4.30.0070.0237.61
4.4.20.0000.0207.61
4.4.10.0030.0337.61
4.4.00.0030.0537.61
4.3.110.0070.0237.61
4.3.100.0000.0337.61
4.3.90.0030.0277.61
4.3.80.0030.0407.61
4.3.70.0030.0337.61
4.3.60.0030.0337.61
4.3.50.0000.0307.61
4.3.40.0030.0537.61
4.3.30.0030.0337.61
4.3.20.0000.0407.61
4.3.10.0000.0307.61
4.3.00.0000.0377.61

preferences:
73.02 ms | 401 KiB | 5 Q